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