don't FinishStage in EndGame
This commit is contained in:
@@ -212,6 +212,7 @@ void GameLoop::RunGameLoop()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If we ended mid-game, finish up. */
|
/* If we ended mid-game, finish up. */
|
||||||
|
GAMESTATE->FinishStage();
|
||||||
GAMESTATE->EndGame();
|
GAMESTATE->EndGame();
|
||||||
|
|
||||||
if( ChangeAppPri() )
|
if( ChangeAppPri() )
|
||||||
|
|||||||
@@ -219,6 +219,7 @@ void GameState::ApplyCmdline()
|
|||||||
|
|
||||||
void GameState::Reset()
|
void GameState::Reset()
|
||||||
{
|
{
|
||||||
|
FinishStage();
|
||||||
EndGame();
|
EndGame();
|
||||||
|
|
||||||
ASSERT( THEME );
|
ASSERT( THEME );
|
||||||
@@ -458,10 +459,6 @@ void GameState::EndGame()
|
|||||||
if( m_timeGameStarted.IsZero() || !STATSMAN->m_vPlayedStageStats.size() ) // we were in the middle of a game and played at least one song
|
if( m_timeGameStarted.IsZero() || !STATSMAN->m_vPlayedStageStats.size() ) // we were in the middle of a game and played at least one song
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Finish the final stage. */
|
|
||||||
FinishStage();
|
|
||||||
|
|
||||||
|
|
||||||
// Update totalPlaySeconds stat
|
// Update totalPlaySeconds stat
|
||||||
int iPlaySeconds = max( 0, (int) m_timeGameStarted.PeekDeltaTime() );
|
int iPlaySeconds = max( 0, (int) m_timeGameStarted.PeekDeltaTime() );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user