aboutsummaryrefslogtreecommitdiff
path: root/src/game/NPCHandler.cpp
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-02-27 15:25:14 +0200
committersilver1ce <none@none>2010-02-27 15:25:14 +0200
commitfcaa318fb36aca077ca9ba5bfe2707ae0fcbd377 (patch)
tree81007144350a78785d58a9797aac0385edb25589 /src/game/NPCHandler.cpp
parent1815d19b85c8b6685850e761a49e1c0d2d7f366b (diff)
Update visibility system
*visibility updates and ai relocations processed simultaneously for each grid *these operations now are not synchronized for different grids *some changes into structure of visibility notifiers --HG-- branch : trunk
Diffstat (limited to 'src/game/NPCHandler.cpp')
-rw-r--r--src/game/NPCHandler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp
index fc2c590745a..dad51d76586 100644
--- a/src/game/NPCHandler.cpp
+++ b/src/game/NPCHandler.cpp
@@ -425,13 +425,11 @@ 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);
- _player->SetToNotify();
+ _player->UpdateObjectVisibility();
}
// or update at original position
else
- //ObjectAccessor::UpdateVisibilityForPlayer(_player);
- _player->SetToNotify();
+ _player->UpdateObjectVisibility();
}
void WorldSession::HandleBinderActivateOpcode( WorldPacket & recv_data )