Simplify.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user