summaryrefslogtreecommitdiff
path: root/dungeon/src/entity.rs
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-18 09:44:25 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-18 09:44:25 -0500
commitc6dfeff327a5f115249e6fcf8c4d6aa0319f3610 (patch)
treeb6ceceae982ddac121eba572a90f3c0a625b9daa /dungeon/src/entity.rs
parentreadme: link jenkins (diff)
downloadDungeonCrawl-c6dfeff327a5f115249e6fcf8c4d6aa0319f3610.tar.gz
DungeonCrawl-c6dfeff327a5f115249e6fcf8c4d6aa0319f3610.tar.bz2
DungeonCrawl-c6dfeff327a5f115249e6fcf8c4d6aa0319f3610.zip
dungeon: split rng into game/level to make maps consistant
Diffstat (limited to 'dungeon/src/entity.rs')
-rw-r--r--dungeon/src/entity.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dungeon/src/entity.rs b/dungeon/src/entity.rs
index 794ef05..b290a2f 100644
--- a/dungeon/src/entity.rs
+++ b/dungeon/src/entity.rs
@@ -413,7 +413,7 @@ impl Dungeon {
pub(crate) fn update_entities(&mut self, input: PlayerInput, delta_time: f32) {
let mut updater = Updater {
floor: &self.floor,
- rng: &mut self.rng,
+ rng: &mut self.game_rng,
player_pos: self.player.entity.pos,
input,
delta_time,