stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus/src/action action_resource.c


From: Nehal Mistry
Subject: [Stratagus-CVS] stratagus/src/action action_resource.c
Date: Fri, 07 Nov 2003 15:51:26 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Nehal Mistry <address@hidden>   03/11/07 15:51:26

Modified files:
        src/action     : action_resource.c 

Log message:
        don't play harvesting sound if unit is not visible

Patches:
Index: stratagus/src/action/action_resource.c
diff -u stratagus/src/action/action_resource.c:1.64 
stratagus/src/action/action_resource.c:1.65
--- stratagus/src/action/action_resource.c:1.64 Sat Nov  1 23:20:37 2003
+++ stratagus/src/action/action_resource.c      Fri Nov  7 15:51:26 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: action_resource.c,v 1.64 2003/11/02 04:20:37 jsalmon3 Exp $
+//     $Id: action_resource.c,v 1.65 2003/11/07 20:51:26 nehalmistry Exp $
 
 //@{
 
@@ -270,7 +270,7 @@
        flags = UnitShowAnimation(unit,
            unit->Type->Animations->Harvest[unit->CurrentResource]);
 #ifdef WITH_SOUND
-       if ((flags & AnimationSound)) {
+       if ((flags & AnimationSound) && UnitVisibleOnMap(unit)) {
            PlayUnitSound(unit, VoiceHarvesting);
        }
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]