Add metric ResetGameState, this can be extremely useful in some places.

This commit is contained in:
Colby Klein
2008-09-24 16:46:34 +00:00
parent 9e8a3048d8
commit 46130b0d3f
3 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -33,11 +33,14 @@ void ScreenWithMenuElements::Init()
CANCEL_TRANSITIONS_OUT.Load( m_sName, "CancelTransitionsOut" );
TIMER_SECONDS.Load( m_sName, "TimerSeconds" );
TIMER_METRICS_GROUP.Load( m_sName, "TimerMetricsGroup" );
RESET_GAMESTATE.Load( m_sName, "ResetGameState" );
Screen::Init();
ASSERT( this->m_SubActors.empty() ); // don't call Init twice!
if( RESET_GAMESTATE )
GAMESTATE->Reset();
if( MEMORY_CARD_ICONS )
{
FOREACH_PlayerNumber( p )