Load map floor index when loading a new game
This commit is contained in:
		| @@ -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.") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user