switch -> if

This commit is contained in:
Glenn Maynard
2006-02-24 00:20:41 +00:00
parent 2d27c7e037
commit 0ad99bffc2
8 changed files with 40 additions and 52 deletions
+8 -6
View File
@@ -172,18 +172,20 @@ void ScreenSelectCharacter::Input( const InputEventPlus &input )
void ScreenSelectCharacter::HandleScreenMessage( const ScreenMessage SM )
{
switch( SM )
if( SM == SM_BeginFadingOut )
{
case SM_BeginFadingOut:
StartTransitioningScreen( SM_GoToNextScreen );
return;
case SM_MenuTimer:
}
else if( SM == SM_MenuTimer )
{
MenuStart(PLAYER_1);
if( !AllAreFinishedChoosing() )
ResetTimer();
return;
}
Screen::HandleScreenMessage( SM );
else
{
Screen::HandleScreenMessage( SM );
}
}
PlayerNumber ScreenSelectCharacter::GetAffectedPlayerNumber( PlayerNumber pn )