*Add unit to notify when unit is add to world (including load grid case).

*Add some check in remove object function.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-08 17:23:57 -05:00
parent 0c2dd85c2c
commit a7e04a252f
4 changed files with 18 additions and 9 deletions

View File

@@ -485,7 +485,7 @@ bool Map::Add(Player *player)
SendInitTransports(player);
player->m_clientGUIDs.clear();
AddNotifier(player);
//AddNotifier(player);
return true;
}
@@ -523,7 +523,7 @@ Map::Add(T *obj)
UpdateObjectVisibility(obj,cell,p);
AddNotifier(obj);
//AddNotifier(obj);
}
void Map::MessageBroadcast(Player *player, WorldPacket *msg, bool to_self, bool to_possessor)