mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7440] Use server-side only zone info. Optimize related calles in case zone and subzone use.
This in some cases make some zones not explorable if it not have server side data in current maps but not allow cheating with zone set from client.
This commit is contained in:
parent
071a0317f0
commit
329fb3f9d1
15 changed files with 103 additions and 56 deletions
|
|
@ -384,10 +384,10 @@ void WorldSession::HandleZoneUpdateOpcode( WorldPacket & recv_data )
|
|||
|
||||
sLog.outDetail("WORLD: Recvd ZONE_UPDATE: %u", newZone);
|
||||
|
||||
if(newZone != _player->GetZoneId())
|
||||
GetPlayer()->SendInitWorldStates(); // only if really enters to new zone, not just area change, works strange...
|
||||
|
||||
GetPlayer()->UpdateZone(newZone);
|
||||
// use server size data
|
||||
uint32 newzone, newarea;
|
||||
GetPlayer()->GetZoneAndAreaId(newzone,newarea);
|
||||
GetPlayer()->UpdateZone(newzone,newarea);
|
||||
}
|
||||
|
||||
void WorldSession::HandleSetTargetOpcode( WorldPacket & recv_data )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue