PlayingTrack() is now reliable enough that we do not need the extra hacky test

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3317 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2009-11-18 01:59:57 +00:00
parent 79d3083dfc
commit 2e14cd01f0
+2 -3
View File
@@ -17,7 +17,6 @@
*/ */
#include "controls.h" #include "controls.h"
#include "commglue.h"
#include "colors.h" #include "colors.h"
#include "settings.h" #include "settings.h"
#include "setup.h" #include "setup.h"
@@ -83,7 +82,7 @@ DoConfirmExit (void)
{ {
BOOLEAN result; BOOLEAN result;
if (CommData.ConversationPhrases && PlayingTrack ()) if (PlayingTrack ())
PauseTrack (); PauseTrack ();
LockMutex (GraphicsLock); LockMutex (GraphicsLock);
@@ -170,7 +169,7 @@ DoConfirmExit (void)
} }
UnlockMutex (GraphicsLock); UnlockMutex (GraphicsLock);
if (CommData.ConversationPhrases && PlayingTrack ()) if (PlayingTrack ())
ResumeTrack (); ResumeTrack ();
return (result); return (result);