*Update visibility only once per update.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-20 17:42:40 -06:00
parent b7be6cb6da
commit 55ef3bca2a
5 changed files with 34 additions and 15 deletions
+4 -2
View File
@@ -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());