9
3
Prechádzať zdrojové kódy

Try to address hangups with reload spawns win larger zones

Emagi 8 mesiacov pred
rodič
commit
8b394e1fa7
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      EQ2/source/WorldServer/zoneserver.cpp

+ 3 - 3
EQ2/source/WorldServer/zoneserver.cpp

@@ -531,7 +531,7 @@ void ZoneServer::DeleteData(bool boot_clients){
 					client->Disconnect();
 			}
 			else{
-				RemoveSpawnSupportFunctions(spawn, boot_clients, boot_clients);
+				RemoveSpawnSupportFunctions(spawn, boot_clients, true);
 				RemoveSpawnFromGrid(spawn, spawn->GetLocation());
 				AddPendingDelete(spawn);
 			}
@@ -1716,7 +1716,7 @@ bool ZoneServer::Process()
 		if(startupDelayTimer.Check())
 			startupDelayTimer.Disable();
 
-		if(spellProcess)
+		if(!reloading && spellProcess)
 			spellProcess->Process();
 		if (tradeskillMgr)
 			tradeskillMgr->Process();
@@ -1783,7 +1783,7 @@ bool ZoneServer::Process()
 			CheckWidgetTimers();
 
 		// spawn_script_timers loop
-		if(!zoneShuttingDown)
+		if(!reloading && !zoneShuttingDown)
 			CheckSpawnScriptTimers();
 
 		// Check to see if a dead spawn needs to be removed