aboutsummaryrefslogtreecommitdiff
path: root/src/game/NPCHandler.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-20 17:42:40 -0600
committermegamage <none@none>2008-12-20 17:42:40 -0600
commit55ef3bca2ae79d87d2e08e80bf29eec38892545f (patch)
treebd0c1139a825f712305440b58e8cd184d3ec0e29 /src/game/NPCHandler.cpp
parentb7be6cb6da831b96ec9fae8442803f06ac3f7971 (diff)
*Update visibility only once per update.
--HG-- branch : trunk
Diffstat (limited to 'src/game/NPCHandler.cpp')
-rw-r--r--src/game/NPCHandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp
index 59e88d669bc..04c31ff8f8d 100644
--- a/src/game/NPCHandler.cpp
+++ b/src/game/NPCHandler.cpp
@@ -399,11 +399,13 @@ void WorldSession::SendSpiritResurrect()
_player->TeleportTo(corpseGrave->map_id, corpseGrave->x, corpseGrave->y, corpseGrave->z, _player->GetOrientation());
// or update at original position
else
- ObjectAccessor::UpdateVisibilityForPlayer(_player);
+ //ObjectAccessor::UpdateVisibilityForPlayer(_player);
+ _player->SetToNotify();
}
// or update at original position
else
- ObjectAccessor::UpdateVisibilityForPlayer(_player);
+ //ObjectAccessor::UpdateVisibilityForPlayer(_player);
+ _player->SetToNotify();
_player->SaveToDB();
}