diff options
Diffstat (limited to 'src/player.zig')
| -rw-r--r-- | src/player.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player.zig b/src/player.zig index 258b924..eef41a7 100644 --- a/src/player.zig +++ b/src/player.zig @@ -65,9 +65,9 @@ pub const Player = struct { if (!map.inBounds(nix, iy) or blk: { - const cell = map.lookup(nix, iy); - if (cell.floor_height > 0) break :blk true; - if (cell.ceiling_height < self.height) break :blk true; + // const cell = map.lookup(nix, iy); + // if (cell.floor_height > 0) break :blk true; + // if (cell.ceiling_height < self.height) break :blk true; break :blk false; }) { next_x = fx + if (self.vel_x > 0) 1 - min_dist else min_dist; @@ -75,7 +75,7 @@ pub const Player = struct { self.acc_x = 0; } - if (!map.inBounds(ix, niy) or map.lookup(ix, niy).floor_height > 0) { + if (!map.inBounds(ix, niy)) { // or map.lookup(ix, niy).floor_height > 0 next_y = fy + if (self.vel_y > 0) 1 - min_dist else min_dist; self.vel_y = 0; self.acc_y = 0; |
