From b73045b34929d14ccf95ff0537c54937dae80ac8 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 20 Jan 2011 19:56:11 +0000 Subject: [PATCH] - turn off music playing while game is loading --- source/glest_game/game/game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/glest_game/game/game.cpp b/source/glest_game/game/game.cpp index 1cbc54336..0c5ad836c 100644 --- a/source/glest_game/game/game.cpp +++ b/source/glest_game/game/game.cpp @@ -357,6 +357,9 @@ void Game::load(LoadGameItem loadTypes) { SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] loadTypes = %d, gameSettings = [%s]\n",__FILE__,__FUNCTION__,__LINE__,loadTypes,this->gameSettings.toString().c_str()); + SoundRenderer &soundRenderer= SoundRenderer::getInstance(); + soundRenderer.stopAllSounds(); + Config &config = Config::getInstance(); Logger &logger= Logger::getInstance();