*Try to fix the bug of visibility update.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-08 22:12:09 -06:00
parent 2377f49ea8
commit ea0421919a
4 changed files with 25 additions and 21 deletions
+1
View File
@@ -1214,6 +1214,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
// Visibility system
UnitVisibility GetVisibility() const { return m_Visibility; }
void SetVisibility(UnitVisibility x);
void DestroyForNearbyPlayers();
// common function for visibility checks for player/creatures with detection code
virtual bool canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList = false, bool is3dDistance = true) const;