Core/Phases: implemented usage of default terrain swaps
- added example for Gilneas (from sniff)
This commit is contained in:
1 parent
d25a8c4859
commit
03fed3c7a4
5 files changed
+28
-11
No files matched your search
@@ -488,6 +488,8 @@ bool Map::AddPlayerToMap(Player* player)
|
||||
player->m_clientGUIDs.clear();
|
||||
player->UpdateObjectVisibility(false);
|
||||
|
||||
player->SendUpdatePhasing();
|
||||
|
||||
sScriptMgr->OnPlayerEnterMap(this, player);
|
||||
return true;
|
||||
}
|
||||
@@ -548,10 +550,6 @@ bool Map::AddToMap(T* obj)
|
||||
|
||||
obj->RebuildTerrainSwaps();
|
||||
|
||||
// packets are only sent to players
|
||||
if (obj->GetTypeId() == TYPEID_PLAYER)
|
||||
obj->ToPlayer()->SendUpdatePhasing();
|
||||
|
||||
//something, such as vehicle, needs to be update immediately
|
||||
//also, trigger needs to cast spell, if not update, cannot see visual
|
||||
obj->UpdateObjectVisibility(true);
|
||||
|
||||
Reference in new issue
Block a user