[Zoning] Fix zone race condition (#2479)

* Testing

* Separate auto shutdown fix

* Revert for PR

* Invalidate lock in places where zoning is cancelled
This commit is contained in:
Chris Miles authored and GitHub committed 2022-10-11 20:23:27 -05:00
1 parent 18bfee5616
commit bc72641eef
4 files changed
+34 -6

No files matched your search

+1
View File
@@ -365,6 +365,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
zc2->success = ZONE_ERROR_NOTREADY;
entity->CastToMob()->SetZone(ztz->current_zone_id, ztz->current_instance_id);
entity->CastToClient()->SetZoning(false);
entity->CastToClient()->SetLockSavePosition(false);
}
else {
entity->CastToClient()->UpdateWho(1);