cleanup and bugfixes

This commit is contained in:
Llywelwyn 2023-08-16 01:23:57 +01:00
parent d439ff6d3f
commit 2ba7cfad8d
7 changed files with 20 additions and 24 deletions

View file

@ -141,7 +141,7 @@ pub fn move_entity(entity: Entity, moving_from: usize, moving_to: usize) {
});
lock.tile_content[moving_to].iter().for_each(|(_, blocks)| {
if *blocks {
from_blocked = true;
to_blocked = true;
}
});
lock.blocked[moving_from].1 = from_blocked;