summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRadioactivity <85001747+voidwyrm-2@users.noreply.github.com>2025-07-26 08:54:21 -1000
committerRadioactivity <85001747+voidwyrm-2@users.noreply.github.com>2025-07-26 08:54:21 -1000
commitf97e9ad76ec2d5c3c1a929cffd7c6dc7c6420bf7 (patch)
treeb51267fb7caf6bb1dbd4d983df03f78a66ce2957 /src
parente29551a8f66107367088f6ea6de21da12415dfe5 (diff)
Fixed improper intFromFloat cast
Diffstat (limited to 'src')
-rw-r--r--src/main.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 6959f53..8f2cda9 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -782,8 +782,8 @@ const ScreenBattle = struct {
const msp = getMousePos(&self.camera);
- const mx: usize = @intFromFloat(msp);
- const my: usize = @intFromFloat(msp);
+ const mx: usize = @intFromFloat(msp.x);
+ const my: usize = @intFromFloat(msp.y);
if (rl.isMouseButtonPressed(rl.MouseButton.left)) {
if (self.wave.get(mx, my) == .lane and edit) {