From fb387f259ddd23caa03d5cea316267a76b345640 Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Tue, 19 Dec 2006 00:22:44 +0000 Subject: [PATCH] Fixed a bug where the victory ditty would end prematurely when UQM is compiled without Netplay support. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2625 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/tactrans.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/tactrans.c b/sc2/src/sc2code/tactrans.c index 83d553911..80608a655 100644 --- a/sc2/src/sc2code/tactrans.c +++ b/sc2/src/sc2code/tactrans.c @@ -181,6 +181,7 @@ readyForBattleEndPlayer (NetConnection *conn, void *arg) } #endif +// Returns true iff this side is ready to end the battle. static inline bool readyForBattleEnd (COUNT side) { @@ -190,7 +191,7 @@ readyForBattleEnd (COUNT side) // accuracy. PLRPlaying () isn't consistent enough. return true; #else /* !DEMO_MODE */ - return PLRPlaying ((MUSIC_REF)~0); + return !PLRPlaying ((MUSIC_REF)~0); #endif /* !DEMO_MODE */ #else /* defined (NETPLAY) */ if (PLRPlaying ((MUSIC_REF)~0))