[Reload] Add Reload for Maps / Navs (#4816)

This commit is contained in:
Chris Miles
2025-03-29 18:24:17 -05:00
committed by GitHub
parent ca9c1fdd24
commit 82b48fe6e8
4 changed files with 14 additions and 0 deletions
+7
View File
@@ -3288,5 +3288,12 @@ bool Zone::VariableExists(const std::string& variable_name)
return m_zone_variables.find(variable_name) != m_zone_variables.end();
}
void Zone::ReloadMaps()
{
zonemap = Map::LoadMapFile(map_name);
watermap = WaterMap::LoadWaterMapfile(map_name);
pathing = IPathfinder::Load(map_name);
}
#include "zone_save_state.cpp"
#include "zone_loot.cpp"