From 55ef3bca2ae79d87d2e08e80bf29eec38892545f Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 20 Dec 2008 17:42:40 -0600 Subject: *Update visibility only once per update. --HG-- branch : trunk --- src/game/Player.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/game/Player.cpp') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index cbd5003e12b..e1b24794cac 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -2070,7 +2070,8 @@ void Player::SetGameMaster(bool on) getHostilRefManager().setOnlineOfflineState(true); } - ObjectAccessor::UpdateVisibilityForPlayer(this); + //ObjectAccessor::UpdateVisibilityForPlayer(this); + SetToNotify(); } void Player::SetGMVisible(bool on) @@ -3851,7 +3852,8 @@ void Player::ResurrectPlayer(float restore_percent, bool applySickness) } // update visibility - ObjectAccessor::UpdateVisibilityForPlayer(this); + //ObjectAccessor::UpdateVisibilityForPlayer(this); + SetToNotify(); // some items limited to specific map DestroyZoneLimitedItem( true, GetZoneId()); -- cgit v1.2.3