From d89f038b7a5eb42dd48d729d8808747d5cbc182b Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Sun, 12 Sep 2021 21:40:58 -0400 Subject: Walk bob and collision detection --- src/level.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/level.zig') diff --git a/src/level.zig b/src/level.zig index 610eb7b..1d61a02 100644 --- a/src/level.zig +++ b/src/level.zig @@ -62,8 +62,7 @@ pub const Map = struct { } pub fn lookup(self: Map, x: i32, y: i32) Cell { - // live dangerously, no bounds check - std.debug.assert(x >= 0 and y >= 0); // compiler hint? + // std.debug.assert(x >= 0 and y >= 0); // would this work as a compiler hint? return self.cells.items[@intCast(u32, y) * self.width + @intCast(u32, x)]; } }; -- cgit v1.3.1