From da0d6e204aa806b20fa7a5ae8cb6d94dfe3da48f Mon Sep 17 00:00:00 2001 From: Nicolas Klier Date: Wed, 8 May 2024 12:32:36 +0200 Subject: [PATCH] Small fix --- src/stage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stage.rs b/src/stage.rs index a053928..abea87f 100644 --- a/src/stage.rs +++ b/src/stage.rs @@ -205,7 +205,7 @@ impl Stage { // If our next cell would be one that we collide with. if npc.obstructed_from.contains(&next_cell.variance) { npc.direction.invert(); - hit_cells.push((npc.next_position().0 as usize, npc.next_position().1 as usize)); + hit_cells.push((npc.pos_x, npc.pos_y)); continue; }