From 510f43d73687b721ee49cba7ba8e23d96f001310 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 11 Mar 2005 02:38:08 +0000 Subject: [PATCH] cleanup --- stepmania/src/ScreenGameplay.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 7b4f0b9cdf..6f643f5a9a 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -2356,9 +2356,8 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM ) SET_XY_AND_ON_COMMAND( m_textSurviveTime ); } - // Feels hackish. Feel free to make cleaner. if( GAMESTATE->IsCourseMode() ) - if( GAMESTATE->GetCourseSongIndex() > (int(m_apSongsQueue.size() / 2) - 1 ) ) + if( GAMESTATE->GetCourseSongIndex() >= int(m_apSongsQueue.size() / 2) ) SOUND->PlayOnceFromAnnouncer( "gameplay oni failed halfway" ); else SOUND->PlayOnceFromAnnouncer( "gameplay oni failed" );