summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-13 09:35:30 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-13 09:47:37 -0500
commit018d7d4c06a354071f72c77dc03abbbe622fdc81 (patch)
tree31c3e42c171cd2ab170260e2efb6f9a320bbc757 /game
parentdungeon: switch to only using small rng from rand (diff)
downloadDungeonCrawl-018d7d4c06a354071f72c77dc03abbbe622fdc81.tar.gz
DungeonCrawl-018d7d4c06a354071f72c77dc03abbbe622fdc81.tar.bz2
DungeonCrawl-018d7d4c06a354071f72c77dc03abbbe622fdc81.zip
dungeon: have Dungeon store the rng, not the Floor
Diffstat (limited to 'game')
-rw-r--r--game/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/src/main.rs b/game/src/main.rs
index 693e7f0..569d08a 100644
--- a/game/src/main.rs
+++ b/game/src/main.rs
@@ -12,7 +12,7 @@ struct Game {
impl Game {
fn new(window: Window) -> Self {
// Initial game state
- let dungeon = Dungeon::default();
+ let dungeon = Dungeon::random();
Self {
window,
dungeon,