From 4177b876f35142cfed1e3dcf7ced4825421f9b19 Mon Sep 17 00:00:00 2001 From: silverice Date: Wed, 17 Mar 2010 21:34:42 +0200 Subject: Added hack that was removed in [7443] Closes issue #979 --HG-- branch : trunk --- src/game/Unit.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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(); } -- cgit v1.2.3