Load map floor index when loading a new game
This commit is contained in:
parent
949555ffff
commit
ad3cce116e
|
@ -343,6 +343,8 @@ class Game:
|
|||
try:
|
||||
self.map_index = d["map_index"]
|
||||
self.maps = [Map().load_state(map_dict) for map_dict in d["maps"]]
|
||||
for i, m in enumerate(self.maps):
|
||||
m.floor = i
|
||||
except KeyError:
|
||||
self.message = _("Some keys are missing in your save file.\n"
|
||||
"Your save seems to be corrupt. It got deleted.")
|
||||
|
|
Loading…
Reference in New Issue