From 747e148a73da6c2478fd5e55cd271bb8d5ca11d6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 19 May 2003 08:47:10 +0000 Subject: [PATCH] fix abstraction --- stepmania/src/Player.h | 3 ++- stepmania/src/ScreenHowToPlay.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Player.h b/stepmania/src/Player.h index 2f3c9e95e4..7302a432d7 100644 --- a/stepmania/src/Player.h +++ b/stepmania/src/Player.h @@ -52,7 +52,7 @@ public: void Step( int col ); void RandomiseNotes( int iNoteRow ); void FadeToFail(); - bool m_bShowJudgment; // Used in ScreenHowToPlay + void DontShowJudgement() { m_bShowJudgment = false; } // Used in ScreenHowToPlay protected: void UpdateTapNotesMissedOlderThan( float fMissIfOlderThanThisBeat ); @@ -88,6 +88,7 @@ protected: Inventory* m_pInventory; CString m_sLastSeenNoteSkin; + bool m_bShowJudgment; }; #endif diff --git a/stepmania/src/ScreenHowToPlay.cpp b/stepmania/src/ScreenHowToPlay.cpp index 83a0b1971a..665164e129 100644 --- a/stepmania/src/ScreenHowToPlay.cpp +++ b/stepmania/src/ScreenHowToPlay.cpp @@ -77,7 +77,7 @@ ScreenHowToPlay::ScreenHowToPlay() : ScreenAttract("ScreenHowToPlay") m_Player.Load( PLAYER_1, pND, &m_LifeMeter, NULL, NULL, NULL ); m_Player.SetX( 480 ); - m_Player.m_bShowJudgment = false; + m_Player.DontShowJudgement(); this->AddChild( &m_Player ); delete pND;