simplify
This commit is contained in:
@@ -183,7 +183,7 @@ local function ShowScreenInstructions()
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
for _,pn in ipairs(PlayerNumber) do
|
for pn in ivalues(PlayerNumber) do
|
||||||
if Difficulty:Compare( GAMESTATE:GetPreferredDifficulty(pn), "Difficulty_Easy" ) <= 0 then
|
if Difficulty:Compare( GAMESTATE:GetPreferredDifficulty(pn), "Difficulty_Easy" ) <= 0 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ function ScreenSelectMusic:setupmusicstagemods()
|
|||||||
GAMESTATE:SetCurrentSong( song )
|
GAMESTATE:SetCurrentSong( song )
|
||||||
GAMESTATE:SetPreferredSong( song )
|
GAMESTATE:SetPreferredSong( song )
|
||||||
|
|
||||||
for _, pn in ipairs(GAMESTATE:GetHumanPlayers()) do
|
for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
|
||||||
GAMESTATE:SetCurrentSteps( pn, steps )
|
GAMESTATE:SetCurrentSteps( pn, steps )
|
||||||
GAMESTATE:GetPlayerState(pn):SetPlayerOptions( "ModsLevel_Stage", po )
|
GAMESTATE:GetPlayerState(pn):SetPlayerOptions( "ModsLevel_Stage", po )
|
||||||
GAMESTATE:SetPreferredDifficulty( pn, difficulty )
|
GAMESTATE:SetPreferredDifficulty( pn, difficulty )
|
||||||
@@ -42,7 +42,7 @@ function ScreenSelectMusic:setupcoursestagemods()
|
|||||||
local so = "failimmediate"
|
local so = "failimmediate"
|
||||||
local Reverse = PlayerNumber:Reverse()
|
local Reverse = PlayerNumber:Reverse()
|
||||||
|
|
||||||
for _, pn in ipairs(GAMESTATE:GetHumanPlayers()) do
|
for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
|
||||||
GAMESTATE:GetPlayerState(pn):SetPlayerOptions( "ModsLevel_Stage", po )
|
GAMESTATE:GetPlayerState(pn):SetPlayerOptions( "ModsLevel_Stage", po )
|
||||||
MESSAGEMAN:Broadcast( "PlayerOptionsChangedP" .. (Reverse[pn]+1) )
|
MESSAGEMAN:Broadcast( "PlayerOptionsChangedP" .. (Reverse[pn]+1) )
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user