mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[Crash] Fix spawn race condition shown by #repop (#2455)
* Troubleshooting * Debugging * Debugging * Debugging * Debugging * Remove debug line * Revert back to GetRawNPCTypeName
This commit is contained in:
@@ -4,9 +4,9 @@ void command_repop(Client *c, const Seperator *sep)
|
||||
{
|
||||
int arguments = sep->argnum;
|
||||
if (!arguments) {
|
||||
entity_list.ClearAreas();
|
||||
c->Message(Chat::White, "Zone depopped, repopping now.");
|
||||
zone->Repop();
|
||||
zone->spawn2_timer.Trigger();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -15,11 +15,10 @@ void command_repop(Client *c, const Seperator *sep)
|
||||
if (is_force) {
|
||||
zone->ClearSpawnTimers();
|
||||
c->Message(Chat::White, "Zone depopped, forcefully repopping now.");
|
||||
} else {
|
||||
} else {
|
||||
c->Message(Chat::White, "Zone depopped, repopping now.");
|
||||
}
|
||||
|
||||
zone->Repop();
|
||||
zone->spawn2_timer.Trigger();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user