From 6cfb37c441cf0f3d6d73948ddb445710ec656fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Sat, 12 Nov 2005 15:25:22 +0000 Subject: [PATCH] Stop sounds at control panel, otherwise any looping sounds will still be playing. (For instance, when getting yourself killed on top of the train.) svn-id: r19574 --- sword1/control.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sword1/control.cpp b/sword1/control.cpp index 13fa5c72433..ef296a9cb3e 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -234,6 +234,7 @@ uint8 Control::runPanel(void) { _screenBuf = (uint8*)malloc(640 * 480); memset(_screenBuf, 0, 640 * 480); _system->copyRectToScreen(_screenBuf, 640, 0, 0, 640, 480); + _sound->quitScreen(); uint32 fontId = SR_FONT, redFontId = SR_REDFONT; if (SwordEngine::_systemVars.language == BS1_CZECH) {