Small fix

This commit is contained in:
2024-05-08 12:32:36 +02:00
parent 54fafe8742
commit da0d6e204a

View File

@@ -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;
}