Simplify.

This commit is contained in:
Steve Checkoway
2006-08-06 02:56:56 +00:00
parent 0f69c20eba
commit a6cd1ace09
@@ -58,6 +58,8 @@ function ScreenPlayerOptionsNext()
end end
function GetGameplayScreen() function GetGameplayScreen()
local st = GAMESTATE:GetCurrentStyleType()
if st == "TwoPlayersSharedSides" then return "ScreenGameplayShared" end
return "ScreenGameplay" return "ScreenGameplay"
end end
@@ -86,7 +88,7 @@ function GetEvaluationNextScreen( sNextScreen, sFailedScreen, sEndScreen )
return sNextScreen return sNextScreen
end end
local bIsExtraStage = GAMESTATE:IsExtraStage() or GAMESTATE:IsExtraStage2() local bIsExtraStage = GAMESTATE:IsAnExtraStage()
-- Not in event mode. If failed, go to the game over screen. -- Not in event mode. If failed, go to the game over screen.
if STATSMAN:GetCurStageStats():AllFailed() and not bIsExtraStage then if STATSMAN:GetCurStageStats():AllFailed() and not bIsExtraStage then
Trace( "Failed" ) Trace( "Failed" )
@@ -191,7 +193,7 @@ function GetScreenInstructions()
end end
function OptionsMenuAvailable() function OptionsMenuAvailable()
if GAMESTATE:IsExtraStage() or GAMESTATE:IsExtraStage2() then return false end if GAMESTATE:IsAnExtraStage() then return false end
return true return true
end end