From 04c3624d630b8093a15589510edf6a264aa02ff3 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 10 May 2012 13:05:45 +0000 Subject: [PATCH] Fixed missing music (and count down) in demo mode. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11226 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/modes/demo_world.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modes/demo_world.cpp b/src/modes/demo_world.cpp index ad4ce2f6b..6f7448368 100644 --- a/src/modes/demo_world.cpp +++ b/src/modes/demo_world.cpp @@ -37,6 +37,10 @@ bool DemoWorld::m_do_demo = false; */ DemoWorld::DemoWorld() { + // Profile mode sets the phase to RACE_PHASE, which means the track intro + // is not shown, the music is not start, no countdown. So reset it to + // the correct value. + setPhase(SETUP_PHASE); m_abort = false; ProfileWorld::setProfileModeLaps(m_num_laps); race_manager->setReverseTrack(false);