diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-18 09:44:25 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-18 09:44:25 -0500 |
| commit | c6dfeff327a5f115249e6fcf8c4d6aa0319f3610 (patch) | |
| tree | b6ceceae982ddac121eba572a90f3c0a625b9daa /dungeon/src/entity.rs | |
| parent | readme: link jenkins (diff) | |
| download | DungeonCrawl-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.rs | 2 |
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, |