Small fix
This commit is contained in:
@@ -205,7 +205,7 @@ impl Stage {
|
|||||||
// If our next cell would be one that we collide with.
|
// If our next cell would be one that we collide with.
|
||||||
if npc.obstructed_from.contains(&next_cell.variance) {
|
if npc.obstructed_from.contains(&next_cell.variance) {
|
||||||
npc.direction.invert();
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user