Skip to content

Commit

Permalink
rebirth fix ghost cursor position when changing song to low diff count
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 13, 2021
1 parent 09eaf6c commit 12f55e2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ t[#t + 1] = Def.Sprite {
end
end

-- probably just changed songs and need to reset the offset completely (hack kind of)
if #thesteps <= numshown and displayindexoffset > #thesteps then
displayindexoffset = 0
end

local cursorindex = currentindex
if cursorindex <= center then
displayindexoffset = clamp(displayindexoffset - 1, 0, #thesteps)
Expand Down

0 comments on commit 12f55e2

Please sign in to comment.