summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-10-24 09:33:09 -0400
committerFreya Murphy <freya@freyacat.org>2025-10-24 09:33:09 -0400
commit08a5f93af8d289034f6088e2fdb8bd924fe12364 (patch)
treea569044e38c795efdc4c5544e2136442a95fe7d7
parentgraphics: implement full map/entity rendering with proper camera movement (diff)
downloadDungeonCrawl-08a5f93af8d289034f6088e2fdb8bd924fe12364.tar.gz
DungeonCrawl-08a5f93af8d289034f6088e2fdb8bd924fe12364.tar.bz2
DungeonCrawl-08a5f93af8d289034f6088e2fdb8bd924fe12364.zip
dungeon: fix hash calculation for floor tiles
-rw-r--r--dungeon/src/map.rs2
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);