Skip to content

Commit 47fdf02

Browse files
authored
Merge pull request #24 from Joltras/fix/displaySeed
Fix display seed
2 parents 29d36b0 + 50d5ac3 commit 47fdf02

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/generators/floor_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def add_new_floor(self, floor: TkinterFloor, canvas) -> None:
4545
self.current_floor_index = len(self._floors) - 1
4646
current = self._floors[self.current_floor_index]
4747
self.current_floor_name.set(current.name)
48+
self.current_floor_seed_var.set(current.seed)
4849

4950
def add_floor(self, floor: TkinterFloor) -> None:
5051
"""

src/generators/tkinter_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def _create_floor(self) -> None:
5353
"""
5454
Creates a new TkinterFloor and appends it to the floor queue.
5555
"""
56+
self._floor = TkinterFloor(my_globals.FLOOR_HEIGHT, my_globals.FLOOR_WIDTH, self._canvas,
57+
my_globals.DEFAULT_FLOOR_NAME + my_globals.JSON_SUFFIX, self._seed)
5658
self._floor_manager.add_new_floor(self._floor, self._canvas)
5759
self._floor = self._floor_manager.get_current_floor()
5860

0 commit comments

Comments
 (0)