Skip to content

Commit

Permalink
maybe resolve negative credit bug
Browse files Browse the repository at this point in the history
I haven't been able to recreate or fully understand the negative credits bug, but it sounds like it is being caused by switching from single to double when Premium is set to "Off".

This commit hopefully resolves the problem by removing the SortMenu options to switch styles if Premium is Off.  This probably makes more sense anyway than the previous logic; we wouldn't want one player sneakily stealing another player's credits by sorting in double when no one is looking.
  • Loading branch information
quietly-turning committed May 11, 2018
1 parent 6bd2cf1 commit 25d4f47
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions BGAnimations/ScreenSelectMusic overlay/SortMenu/default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ local t = Def.ActorFrame {
{"SortBy", "Recent"}
}

if SL.Global.Gamestate.Style == "single" then
table.insert(wheel_options, {"ChangeStyle", "Double"})
elseif SL.Global.Gamestate.Style == "double" then
table.insert(wheel_options, {"ChangeStyle", "Single"})
-- Allow players to switch from single to double and single to double
-- but only present these options if Joint Double or Joint Premium is enabled
if PREFSMAN:GetPreference("Premium") ~= "Off" then
if SL.Global.Gamestate.Style == "single" then
table.insert(wheel_options, {"ChangeStyle", "Double"})
elseif SL.Global.Gamestate.Style == "double" then
table.insert(wheel_options, {"ChangeStyle", "Single"})
end
end


Expand Down

0 comments on commit 25d4f47

Please sign in to comment.