# HG changeset patch # User unc0rr # Date 1221772824 0 # Node ID 34c3795ecb63327925de2a041b59d5e37b27cff6 # Parent a14c5a0bbff9be4dad02f70113d04438ddb2c7fe Fix music starting to play after the round even if it was turned off diff -r a14c5a0bbff9 -r 34c3795ecb63 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()); } }; }