diff options
author | silverice <none@none> | 2010-03-17 21:34:42 +0200 |
---|---|---|
committer | silverice <none@none> | 2010-03-17 21:34:42 +0200 |
commit | 4177b876f35142cfed1e3dcf7ced4825421f9b19 (patch) | |
tree | 7183c81b0361679baaacba835a236b8b6c2767ea | |
parent | 48d7ae707db2a4997663e368e8afe1ae853c7d18 (diff) |
Added hack that was removed in [7443]
Closes issue #979
--HG--
branch : trunk
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index cee19b7b0e0..a569282bf4a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -11721,6 +11721,10 @@ bool Unit::canDetectStealthOf(Unit const* target, float distance) const void Unit::SetVisibility(UnitVisibility x) { m_Visibility = x; + + if (m_Visibility == VISIBILITY_GROUP_STEALTH) + DestroyForNearbyPlayers(); + UpdateObjectVisibility(); } |