minor fixes

cleanup
This commit is contained in:
Glenn Maynard
2004-01-21 04:59:15 +00:00
parent 7f76e630c5
commit d4a35810c2
+9 -6
View File
@@ -47,18 +47,21 @@ GameState* GAMESTATE = NULL; // global and accessable from anywhere in our progr
GameState::GameState() GameState::GameState()
{ {
m_pPosition = NULL;
m_pUnlockingSys = new UnlockSystem;
m_CurGame = GAME_DANCE; m_CurGame = GAME_DANCE;
m_iCoins = 0; m_iCoins = 0;
/* Don't reset yet; let the first screen do it, so we can m_timeGameStarted = 0;
* use PREFSMAN. */
// Reset();
m_pPosition = NULL;
m_bIsOnSystemMenu = false; m_bIsOnSystemMenu = false;
m_pUnlockingSys = new UnlockSystem;
ReloadCharacters(); ReloadCharacters();
m_iNumTimesThroughAttract = -1; // initial screen will bump this up to 0 m_iNumTimesThroughAttract = -1; // initial screen will bump this up to 0
/* Don't reset yet; let the first screen do it, so we can
* use PREFSMAN and THEME. */
// Reset();
} }
GameState::~GameState() GameState::~GameState()
@@ -141,8 +144,8 @@ void GameState::Reset()
m_pCurCharacters[p] = GetRandomCharacter(); m_pCurCharacters[p] = GetRandomCharacter();
else else
m_pCurCharacters[p] = GetDefaultCharacter(); m_pCurCharacters[p] = GetDefaultCharacter();
ASSERT( m_pCurCharacters[p] );
} }
ASSERT( m_pCurCharacters[p] );
for( p=0; p<NUM_PLAYERS; p++ ) for( p=0; p<NUM_PLAYERS; p++ )
{ {