fix backing out of the stage screen causes the stage counter to be increased

This commit is contained in:
Glenn Maynard
2004-04-25 23:17:08 +00:00
parent 162d5581ba
commit 08c00bd689
+8
View File
@@ -768,6 +768,14 @@ void ScreenGameplay::Init()
ScreenGameplay::~ScreenGameplay()
{
if( this->IsFirstUpdate() )
{
/* We never received any updates. That means we were deleted without being
* used, and never actually played. (This can happen when backing out of
* ScreenStage.) Cancel the stage. */
GAMESTATE->CancelStage();
}
LOG->Trace( "ScreenGameplay::~ScreenGameplay()" );
for( int p=0; p<NUM_PLAYERS; p++ )