aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r--src/game/Map.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index d64a1736fe1..9ebd3357175 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);