From 9613079a928875b75fe67eddf989cd9ac5621e7a Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 2 Sep 2006 21:19:32 +0000 Subject: [PATCH] static --- stepmania/src/Player.h | 2 +- stepmania/src/ScreenGameplay.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Player.h b/stepmania/src/Player.h index 078ac44f56..456c71a98f 100644 --- a/stepmania/src/Player.h +++ b/stepmania/src/Player.h @@ -121,7 +121,7 @@ public: void ApplyWaitingTransforms(); void SetPaused( bool bPaused ) { m_bPaused = bPaused; } - float GetMaxStepDistanceSeconds(); + static float GetMaxStepDistanceSeconds(); const NoteData &GetNoteData() const { return m_NoteData; } bool HasNoteField() const { return m_pNoteField != NULL; } diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index bdf54561d2..4a852d7ca9 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1680,8 +1680,7 @@ void ScreenGameplay::Update( float fDeltaTime ) float fSecondsToStop = GAMESTATE->m_pCurSong->GetElapsedTimeFromBeat( GAMESTATE->m_pCurSong->m_fLastBeat ); /* Make sure we keep going long enough to register a miss for the last note. */ - Player &player = *m_vPlayerInfo[0].m_pPlayer; - fSecondsToStop += player.GetMaxStepDistanceSeconds(); + fSecondsToStop += Player::GetMaxStepDistanceSeconds(); if( GAMESTATE->m_fMusicSeconds > fSecondsToStop && !m_SongFinished.IsTransitioning() && !m_NextSong.IsTransitioning() ) m_SongFinished.StartTransitioning( SM_NotesEnded );