mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
[Reload] Add Reload for Maps / Navs (#4816)
This commit is contained in:
parent
ca9c1fdd24
commit
82b48fe6e8
@ -22,6 +22,7 @@ namespace ServerReload {
|
||||
LevelEXPMods,
|
||||
Logs,
|
||||
Loot,
|
||||
Maps,
|
||||
Merchants,
|
||||
NPCEmotes,
|
||||
NPCSpells,
|
||||
@ -61,6 +62,7 @@ namespace ServerReload {
|
||||
"Level EXP Mods",
|
||||
"Logs",
|
||||
"Loot",
|
||||
"Maps",
|
||||
"Merchants",
|
||||
"NPC Emotes",
|
||||
"NPC Spells",
|
||||
|
||||
@ -4599,6 +4599,10 @@ void WorldServer::ProcessReload(const ServerReload::Request& request)
|
||||
zone->ReloadLootTables();
|
||||
break;
|
||||
|
||||
case ServerReload::Type::Maps:
|
||||
zone->ReloadMaps();
|
||||
break;
|
||||
|
||||
case ServerReload::Type::Merchants:
|
||||
entity_list.ReloadMerchants();
|
||||
break;
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -479,6 +479,7 @@ public:
|
||||
);
|
||||
void SaveZoneState();
|
||||
static void ClearZoneState(uint32 zone_id, uint32 instance_id);
|
||||
void ReloadMaps();
|
||||
|
||||
private:
|
||||
bool allow_mercs;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user