simplify
This commit is contained in:
@@ -317,6 +317,9 @@ void GameState::EndGame()
|
|||||||
{
|
{
|
||||||
LOG->Trace( "GameState::EndGame" );
|
LOG->Trace( "GameState::EndGame" );
|
||||||
|
|
||||||
|
/* Finish the final stage. */
|
||||||
|
FinishStage();
|
||||||
|
|
||||||
// Update profile stats
|
// Update profile stats
|
||||||
int iPlaySeconds = max( 0, (int) m_timeGameStarted.PeekDeltaTime() );
|
int iPlaySeconds = max( 0, (int) m_timeGameStarted.PeekDeltaTime() );
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#include "BitmapText.h"
|
#include "BitmapText.h"
|
||||||
#include "ActorUtil.h"
|
#include "ActorUtil.h"
|
||||||
#include "SongUtil.h"
|
#include "SongUtil.h"
|
||||||
#include "GameState.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define BACKGROUNDS_SPACING_X THEME->GetMetricF("ScreenCredits","BackgroundsSpacingX")
|
#define BACKGROUNDS_SPACING_X THEME->GetMetricF("ScreenCredits","BackgroundsSpacingX")
|
||||||
@@ -170,9 +169,6 @@ static const CreditLine CREDIT_LINES[] =
|
|||||||
|
|
||||||
ScreenCredits::ScreenCredits( CString sName ) : ScreenAttract( sName )
|
ScreenCredits::ScreenCredits( CString sName ) : ScreenAttract( sName )
|
||||||
{
|
{
|
||||||
/* Make sure the last stage was finished. */
|
|
||||||
GAMESTATE->FinishStage();
|
|
||||||
|
|
||||||
vector<Song*> arraySongs;
|
vector<Song*> arraySongs;
|
||||||
SONGMAN->GetSongs( arraySongs );
|
SONGMAN->GetSongs( arraySongs );
|
||||||
SongUtil::SortSongPointerArrayByTitle( arraySongs );
|
SongUtil::SortSongPointerArrayByTitle( arraySongs );
|
||||||
|
|||||||
@@ -66,9 +66,6 @@ CString GetStatsLineValue( PlayerNumber pn, int iLine )
|
|||||||
|
|
||||||
ScreenEnding::ScreenEnding( CString sClassName ) : ScreenAttract( sClassName, false/*dont reset GAMESTATE*/ )
|
ScreenEnding::ScreenEnding( CString sClassName ) : ScreenAttract( sClassName, false/*dont reset GAMESTATE*/ )
|
||||||
{
|
{
|
||||||
/* Make sure the last stage was finished. */
|
|
||||||
GAMESTATE->FinishStage();
|
|
||||||
|
|
||||||
vector<Song*> arraySongs;
|
vector<Song*> arraySongs;
|
||||||
SONGMAN->GetSongs( arraySongs );
|
SONGMAN->GetSongs( arraySongs );
|
||||||
SongUtil::SortSongPointerArrayByTitle( arraySongs );
|
SongUtil::SortSongPointerArrayByTitle( arraySongs );
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
#include "AnnouncerManager.h"
|
#include "AnnouncerManager.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
#include "SongUtil.h"
|
#include "SongUtil.h"
|
||||||
#include "GameState.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define SCROLL_DELAY THEME->GetMetricF("ScreenMusicScroll","ScrollDelay")
|
#define SCROLL_DELAY THEME->GetMetricF("ScreenMusicScroll","ScrollDelay")
|
||||||
@@ -36,9 +35,6 @@ const unsigned NUM_CREDIT_LINES = sizeof(CREDIT_LINES) / sizeof(CString);
|
|||||||
|
|
||||||
ScreenMusicScroll::ScreenMusicScroll( CString sClassName ) : ScreenAttract( sClassName )
|
ScreenMusicScroll::ScreenMusicScroll( CString sClassName ) : ScreenAttract( sClassName )
|
||||||
{
|
{
|
||||||
/* Make sure the last stage was finished. */
|
|
||||||
GAMESTATE->FinishStage();
|
|
||||||
|
|
||||||
vector<Song*> arraySongs;
|
vector<Song*> arraySongs;
|
||||||
SONGMAN->GetSongs( arraySongs );
|
SONGMAN->GetSongs( arraySongs );
|
||||||
SongUtil::SortSongPointerArrayByTitle( arraySongs );
|
SongUtil::SortSongPointerArrayByTitle( arraySongs );
|
||||||
|
|||||||
Reference in New Issue
Block a user