Fix music starting to play after the round even if it was turned off
authorunc0rr
Thu, 18 Sep 2008 21:20:24 +0000
changeset 1268 34c3795ecb63
parent 1267 a14c5a0bbff9
child 1269 9844a2afb3e5
Fix music starting to play after the round even if it was turned off
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Thu Sep 18 20:06:05 2008 +0000
+++ b/QTfrontend/hwform.cpp	Thu Sep 18 21:20:24 2008 +0000
@@ -548,7 +548,7 @@
 {
 	switch(gameState) {
 		case gsStarted: {
-			sdli.StopMusic();
+			Music(false);
 			GoToPage(ID_PAGE_INGAME);
 			ui.pageGameStats->labelGameStats->setText("");
 			if (pRegisterServer)
@@ -560,7 +560,7 @@
 		}
 		case gsFinished: {
 			GoBack();
-			sdli.StartMusic();
+			Music(ui.pageOptions->CBEnableMusic->isChecked());
 			GoToPage(ID_PAGE_GAMESTATS);
 			break;
 		}
@@ -568,7 +568,7 @@
 			quint8 id = ui.Pages->currentIndex();
 			if (id == ID_PAGE_INGAME) {
 				GoBack();
-				sdli.StartMusic();
+				Music(ui.pageOptions->CBEnableMusic->isChecked());
 			}
 		};
 	}