From 3a89d0f9976cfc9b393f3caae80b5433961f0ee7 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 5 Feb 2006 04:29:10 +0000 Subject: [PATCH] fix Init method not being called --- stepmania/src/ScreenGameplay.cpp | 5 +++++ stepmania/src/ScreenGameplay.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 5cfb2b7c56..4a1e656ce8 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -342,6 +342,11 @@ ScreenGameplay::ScreenGameplay() m_pPlayerScoreList = NULL; } +void ScreenGameplay::Init() +{ + Init( true ); +} + void ScreenGameplay::Init( bool bUseSongBackgroundAndForeground ) { PLAYER_TYPE.Load( m_sName, "PlayerType" ); diff --git a/stepmania/src/ScreenGameplay.h b/stepmania/src/ScreenGameplay.h index f571cac7ef..5140b80375 100644 --- a/stepmania/src/ScreenGameplay.h +++ b/stepmania/src/ScreenGameplay.h @@ -98,7 +98,8 @@ class ScreenGameplay : public ScreenWithMenuElements { public: ScreenGameplay(); - virtual void Init( bool bUseSongBackgroundAndForeground = true ); + virtual void Init(); + void Init( bool bUseSongBackgroundAndForeground ); virtual ~ScreenGameplay(); virtual void BeginScreen();