From 0b0f74b97d99326fcef27729b0bc563998f0148b Mon Sep 17 00:00:00 2001 From: avolkov Date: Wed, 16 Mar 2005 04:17:15 +0000 Subject: [PATCH] Flushing sfx queue on abort; bug #700 git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1577 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/process.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sc2/src/sc2code/process.c b/sc2/src/sc2code/process.c index a5186c35e..1209a7e46 100644 --- a/sc2/src/sc2code/process.c +++ b/sc2/src/sc2code/process.c @@ -1097,6 +1097,12 @@ RedrawQueue (BOOLEAN clear) FlushSounds (); } + else + { // sfx queue needs to be flushed when aborting + ProcessSound ((SOUND)~0, NULL); + FlushSounds (); + } + DisplayLinks = MakeLinks (END_OF_LIST, END_OF_LIST); }