Core/Phases: only send packets to players, also fixes compile

This commit is contained in:
Rat committed 2014-10-28 07:31:39 +01:00
1 parent f86b8aa573
commit d32492fa42
1 file changed
+4 -1
+4 -1
View File
@@ -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