Core/World: adapted Master branch version of world state handling
This commit is contained in:
1 parent
6b8314454f
commit
2521489e2b
27 files changed
+258
-152
No files matched your search
@@ -8800,6 +8800,8 @@ void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
|
||||
packet.AreaID = zoneId;
|
||||
packet.SubareaID = areaId;
|
||||
|
||||
sWorldStateMgr->FillInitialWorldStates(packet, GetMap());
|
||||
|
||||
packet.Worldstates.emplace_back(2264, 0); // 1
|
||||
packet.Worldstates.emplace_back(2263, 0); // 2
|
||||
packet.Worldstates.emplace_back(2262, 0); // 3
|
||||
@@ -9420,13 +9422,6 @@ void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
|
||||
break;
|
||||
}
|
||||
|
||||
// insert realm wide world states
|
||||
sWorldStateMgr->AppendRealmWorldStates(packet.Worldstates);
|
||||
|
||||
// insert map world states
|
||||
if (Map* map = GetMap())
|
||||
map->AppendWorldStates(packet.Worldstates);
|
||||
|
||||
SendDirectMessage(packet.Write());
|
||||
SendBGWeekendWorldStates();
|
||||
SendBattlefieldWorldStates();
|
||||
|
||||
Reference in new issue
Block a user