Removed the variable limit setting since it's never used and instead just have WALL_PATH_LIMIT.

This commit is contained in:
Zed A. Shaw 2024-12-05 08:41:10 -05:00
parent 9abb39a3bf
commit eb0ca38e30
19 changed files with 50 additions and 58 deletions

View file

@ -22,7 +22,7 @@ void save::to_file(fs::path path, DinkyECS::World &world, Map &map) {
save_data.facts.player = world.get_the<Player>();
save_data.map = MapData{
map.$limit, map.$width, map.$height,
map.$width, map.$height,
map.$rooms, map.$walls};
// BUG: lights aren't saved/restored
@ -76,10 +76,9 @@ void save::from_file(fs::path path, DinkyECS::World &world_out, Map &map_out) {
size_t width = save_data.map.width;
size_t height = save_data.map.height;
int limit = save_data.map.limit;
Pathing paths(width, height, limit);
map_out = Map(save_data.map.walls, paths, limit);
Pathing paths(width, height);
map_out = Map(save_data.map.walls, paths);
save::load_configs(world_out);
}