diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-10-24 09:33:09 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-10-24 09:33:09 -0400 |
| commit | 08a5f93af8d289034f6088e2fdb8bd924fe12364 (patch) | |
| tree | a569044e38c795efdc4c5544e2136442a95fe7d7 /dungeon | |
| parent | graphics: implement full map/entity rendering with proper camera movement (diff) | |
| download | DungeonCrawl-08a5f93af8d289034f6088e2fdb8bd924fe12364.tar.gz DungeonCrawl-08a5f93af8d289034f6088e2fdb8bd924fe12364.tar.bz2 DungeonCrawl-08a5f93af8d289034f6088e2fdb8bd924fe12364.zip | |
dungeon: fix hash calculation for floor tiles
Diffstat (limited to 'dungeon')
| -rw-r--r-- | dungeon/src/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs index fb42a77..24378a5 100644 --- a/dungeon/src/map.rs +++ b/dungeon/src/map.rs @@ -158,7 +158,7 @@ impl Floor { pub fn hash(&self) -> u64 { // initial (immutable) dirty check let dirty = self.dirty.borrow(); - if *dirty { + if !*dirty { return *self.hash.borrow(); } drop(dirty); |