diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-30 12:40:04 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-30 12:40:04 +0100 |
| commit | 9e8896fac575186bdd2a5b22d832a53af2771bb5 (patch) | |
| tree | 054419b3097fb03375a75048a790545471619674 | |
| parent | 195177c81c54ddd463acfbeaf7f84843750215dc (diff) | |
| download | hurrycurry-9e8896fac575186bdd2a5b22d832a53af2771bb5.tar hurrycurry-9e8896fac575186bdd2a5b22d832a53af2771bb5.tar.bz2 hurrycurry-9e8896fac575186bdd2a5b22d832a53af2771bb5.tar.zst | |
fix bug causing wrong walkable index in Game::set_tile
| -rw-r--r-- | server/game-core/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/game-core/src/lib.rs b/server/game-core/src/lib.rs index e05eec67..d4b7ed97 100644 --- a/server/game-core/src/lib.rs +++ b/server/game-core/src/lib.rs @@ -203,7 +203,7 @@ impl Game { } if let Some(kind) = kind { self.tiles.insert(pos, Tile { kind, item: None }); - if self.data_index.tile_collide[kind.0] { + if !self.data_index.tile_collide[kind.0] { self.walkable.insert(pos); } self.tile_index.entry(kind).or_default().insert(pos); |