fix(Core/Players): Update the player's zone and area only after update the player's position server-side (#9419)

This commit is contained in:
schell244
2021-12-10 01:58:43 +01:00
committed by GitHub
parent 85d2c39a48
commit 39355fa1ee
4 changed files with 17 additions and 4 deletions

View File

@@ -522,10 +522,9 @@ void WorldSession::HandleZoneUpdateOpcode(WorldPacket& recv_data)
LOG_DEBUG("network", "WORLD: Recvd ZONE_UPDATE: %u", newZone);
// use server size data
uint32 newzone, newarea;
GetPlayer()->GetZoneAndAreaId(newzone, newarea);
GetPlayer()->UpdateZone(newzone, newarea);
// use server side data, but only after update the player position. See Player::UpdatePosition().
GetPlayer()->SetNeedZoneUpdate(true);
//GetPlayer()->SendInitWorldStates(true, newZone);
}