cleanup, fix typo (where'd this commit go?)

This commit is contained in:
Glenn Maynard
2003-12-15 07:04:20 +00:00
parent 0a41bb8512
commit 2a029e97be
+4 -4
View File
@@ -64,7 +64,7 @@ GameState::~GameState()
void GameState::Reset() void GameState::Reset()
{ {
if( m_timeGameStarted != 0 && m_vPlayedStageStats.size() ) // we were in the middle of a game and played at least one song if( m_timeGameStated != 0 && m_vPlayedStageStats.size() ) // we were in the middle of a game and played at least one song
EndGame(); EndGame();
@@ -72,7 +72,7 @@ void GameState::Reset()
int p; int p;
m_timeGameStarted = 0; m_timeGameStated = 0;
m_CurStyle = STYLE_INVALID; m_CurStyle = STYLE_INVALID;
for( p=0; p<NUM_PLAYERS; p++ ) for( p=0; p<NUM_PLAYERS; p++ )
m_bSideIsJoined[p] = false; m_bSideIsJoined[p] = false;
@@ -155,7 +155,7 @@ void GameState::Reset()
void GameState::BeginGame() void GameState::BeginGame()
{ {
m_timeGameStarted = time(NULL); m_timeGameStated = time(NULL);
} }
void GameState::EndGame() void GameState::EndGame()
@@ -163,7 +163,7 @@ void GameState::EndGame()
// Update profile stats // Update profile stats
time_t now = time(NULL); time_t now = time(NULL);
int iPlaySeconds = now - m_timeGameStarted; int iPlaySeconds = now - m_timeGameStated;
if( iPlaySeconds < 0 ) if( iPlaySeconds < 0 )
iPlaySeconds = 0; iPlaySeconds = 0;