stratagus-cvs
[Top][All Lists]
Advanced

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

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


From: Jimmy Salmon
Subject: [Stratagus-CVS] stratagus/src/action action_build.c
Date: Mon, 27 Oct 2003 21:18:40 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Jimmy Salmon <address@hidden>   03/10/27 21:18:40

Modified files:
        src/action     : action_build.c 

Log message:
        Play building ready sound if it exists after a building is built

Patches:
Index: stratagus/src/action/action_build.c
diff -u stratagus/src/action/action_build.c:1.99 
stratagus/src/action/action_build.c:1.100
--- stratagus/src/action/action_build.c:1.99    Fri Oct 17 02:04:29 2003
+++ stratagus/src/action/action_build.c Mon Oct 27 21:18:40 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: action_build.c,v 1.99 2003/10/17 06:04:29 mr-russ Exp $
+//     $Id: action_build.c,v 1.100 2003/10/28 02:18:40 jsalmon3 Exp $
 
 //@{
 
@@ -387,8 +387,10 @@
        NotifyPlayer(unit->Player, NotifyGreen, unit->X, unit->Y,
            "New %s done", type->Name);
        if (unit->Player == ThisPlayer) {
-           if (worker) {
-               PlayUnitSound(worker, VoiceWorkCompleted);
+           if (unit->Type->Sound.Ready.Sound) {
+               PlayUnitSound(unit, VoiceReady);
+           } else if (worker) {
+               PlayUnitSound(worker, VoiceWorkCompleted);
            } else {
                PlayUnitSound(unit, VoiceBuilding);
            }




reply via email to

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