@@ -42,7 +42,7 @@ Wheel.mt = {
42
42
end
43
43
end
44
44
end ,
45
- updateGlobalsFromCurrentItem = function (whee )
45
+ updateGlobalsFromCurrentItem = function (whee , updateSteps )
46
46
-- update Gamestate current song
47
47
local currentItem = whee :getItem (whee .index )
48
48
if currentItem .GetDisplayMainTitle then
@@ -117,18 +117,21 @@ Wheel.mt = {
117
117
return index , dadiff
118
118
end
119
119
120
- -- setting diff stuff
121
- local stepslist = WHEELDATA :GetChartsMatchingFilter (currentItem )
122
- if # stepslist == 0 then
123
- -- this scenario should be impossible but lets prepare for the case
124
- GAMESTATE :SetCurrentSteps (PLAYER_1 , nil )
125
- else
126
- local prefdiff = GAMESTATE :GetPreferredDifficulty ()
127
-
128
- diffSelection = findTheDiffToUseBasedOnStepsTypeAndDifficultyBothPreferred (stepslist , prefdiff , GAMESTATE :GetPreferredStepsType ())
129
- diffSelection = clamp (diffSelection , 1 , # stepslist )
120
+ -- only update steps if we want to
121
+ if dontUpdateSteps == true then
122
+ -- setting diff stuff
123
+ local stepslist = WHEELDATA :GetChartsMatchingFilter (currentItem )
124
+ if # stepslist == 0 then
125
+ -- this scenario should be impossible but lets prepare for the case
126
+ GAMESTATE :SetCurrentSteps (PLAYER_1 , nil )
127
+ else
128
+ local prefdiff = GAMESTATE :GetPreferredDifficulty ()
129
+
130
+ diffSelection = findTheDiffToUseBasedOnStepsTypeAndDifficultyBothPreferred (stepslist , prefdiff , GAMESTATE :GetPreferredStepsType ())
131
+ diffSelection = clamp (diffSelection , 1 , # stepslist )
130
132
131
- GAMESTATE :SetCurrentSteps (PLAYER_1 , stepslist [diffSelection ])
133
+ GAMESTATE :SetCurrentSteps (PLAYER_1 , stepslist [diffSelection ])
134
+ end
132
135
end
133
136
else
134
137
-- currentItem is a GROUP
@@ -701,7 +704,8 @@ function MusicWheel:new(params)
701
704
if songOrPack .GetAllSteps then
702
705
-- STARTING SONG
703
706
crossedGroupBorder = true
704
- w :updateGlobalsFromCurrentItem ()
707
+ -- dont update steps (pass true as param)
708
+ w :updateGlobalsFromCurrentItem (true )
705
709
706
710
SCREENMAN :GetTopScreen ():SelectCurrent ()
707
711
SCREENMAN :set_input_redirected (PLAYER_1 , false )
0 commit comments