Core/Phases: only send packets to players, also fixes compile
This commit is contained in:
1 parent
f86b8aa573
commit
d32492fa42
1 file changed
+4
-1
@@ -547,7 +547,10 @@ bool Map::AddToMap(T* obj)
|
||||
AddToActive(obj);
|
||||
|
||||
obj->RebuildTerrainSwaps();
|
||||
obj->SendUpdatePhasing();
|
||||
|
||||
// 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
|
||||
|
||||
Reference in new issue
Block a user