diff options
author | megamage <none@none> | 2009-01-23 22:10:59 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-23 22:10:59 -0600 |
commit | c62acd32f85b4d1a4242e2d7a0f3f9eec92a7fda (patch) | |
tree | 3010022dacd6e661bb2c7a693ad23a8a12b32630 /src/game/Map.cpp | |
parent | 8a6277dab2c818a5d0b9f5eef2815f2dedfa41ae (diff) |
*Fix the bug that player cannot see other units after changing map (the last rev does not work).
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r-- | src/game/Map.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index d9971518bf3..bef251bd880 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -797,6 +797,10 @@ void Map::Update(const uint32 &t_diff) void Map::Remove(Player *player, bool remove) { + player->DestroyForNearbyPlayers(); + player->m_IsInNotifyList = false; + player->m_Notified = false; + // this may be called during Map::Update // after decrement+unlink, ++m_mapRefIter will continue correctly // when the first element of the list is being removed @@ -835,7 +839,7 @@ void Map::Remove(Player *player, bool remove) SendRemoveTransports(player); //UpdateObjectsVisibilityFor(player,cell,p); - AddUnitToNotify(player); + //AddUnitToNotify(player); if( remove ) DeleteFromWorld(player); |