diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-11 16:28:28 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-11 16:28:28 +0200 |
| commit | 6aaabd3199425827cd3388ab8a3f8a2def4a0c9f (patch) | |
| tree | da0ef3a081b1800479f4c0e1b69486b31cb71192 | |
| parent | fix player surviving at 0 HP after enemy retaliation (diff) | |
| download | dungeon-6aaabd3199425827cd3388ab8a3f8a2def4a0c9f.tar.gz dungeon-6aaabd3199425827cd3388ab8a3f8a2def4a0c9f.zip | |
fix phantom walls flickering every frame instead of per turn
| -rw-r--r-- | src/game.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.rs b/src/game.rs index 133a43f..d9e3f52 100644 --- a/src/game.rs +++ b/src/game.rs | |||
| @@ -1645,7 +1645,7 @@ impl Game { | |||
| 1645 | let h = (x as u64) | 1645 | let h = (x as u64) |
| 1646 | .wrapping_mul(0x9e3779b9) | 1646 | .wrapping_mul(0x9e3779b9) |
| 1647 | .wrapping_add((y as u64).wrapping_mul(0x517cc1b727220a95)) | 1647 | .wrapping_add((y as u64).wrapping_mul(0x517cc1b727220a95)) |
| 1648 | .wrapping_add(self.frame_counter); | 1648 | .wrapping_add(self.heartbeat_count); |
| 1649 | (h ^ (h >> 33)).wrapping_mul(0xc6a4a7935bd1e995) | 1649 | (h ^ (h >> 33)).wrapping_mul(0xc6a4a7935bd1e995) |
| 1650 | } | 1650 | } |
| 1651 | 1651 | ||
