From 9401751ec1ac217e1223c18db1ea2213dff0c61b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 25 Jan 2003 07:37:55 +0000 Subject: [PATCH] set GAMESTATE->m_bDemonstration before SGameplay ctor --- stepmania/src/ScreenDemonstration.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenDemonstration.cpp b/stepmania/src/ScreenDemonstration.cpp index ad62e58b42..074f7a56fa 100644 --- a/stepmania/src/ScreenDemonstration.cpp +++ b/stepmania/src/ScreenDemonstration.cpp @@ -129,13 +129,14 @@ bool SetUpSongOptions() // always return true. GAMESTATE->m_SongOptions.m_LifeType = (randomf(0,1)>0.8f) ? SongOptions::LIFE_BATTERY : SongOptions::LIFE_BAR; GAMESTATE->m_SongOptions.m_FailType = SongOptions::FAIL_OFF; + GAMESTATE->m_bDemonstration = true; + return true; } ScreenDemonstration::ScreenDemonstration() : ScreenGameplay(SetUpSongOptions()) // this is a hack to get some code to execute before the ScreenGameplay constructor { LOG->Trace( "ScreenDemonstration::ScreenDemonstration()" ); - GAMESTATE->m_bDemonstration = true; if( GAMESTATE->m_pCurSong == NULL ) // we didn't find a song. {