Skip to content

Commit

Permalink
Dont change rate when clicking a score on Profile Tab if it doesnt work
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Jul 13, 2020
1 parent c52443b commit 8119385
Showing 1 changed file with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,19 +335,21 @@ local function rankingLabel(i)
if not showOnline then
if ths then
local srate = ths:GetMusicRate()
whee:SelectSong(thssong)
GAMESTATE:GetSongOptionsObject("ModsLevel_Preferred"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Song"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Current"):MusicRate(srate)
if whee:SelectSong(thssong) then
GAMESTATE:GetSongOptionsObject("ModsLevel_Preferred"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Song"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Current"):MusicRate(srate)
end
end
elseif onlineScore and onlineScore.chartkey then
local song = SONGMAN:GetSongByChartKey(onlineScore.chartkey)
if song then
local srate = onlineScore.rate
whee:SelectSong(song)
GAMESTATE:GetSongOptionsObject("ModsLevel_Preferred"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Song"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Current"):MusicRate(srate)
if whee:SelectSong(song) then
GAMESTATE:GetSongOptionsObject("ModsLevel_Preferred"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Song"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Current"):MusicRate(srate)
end
end
end
end
Expand Down Expand Up @@ -548,10 +550,11 @@ local function recentLabel(i)
if recentactive and ButtonActive(self) then
if ths then
local srate = ths:GetMusicRate()
whee:SelectSong(thssong)
GAMESTATE:GetSongOptionsObject("ModsLevel_Preferred"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Song"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Current"):MusicRate(srate)
if whee:SelectSong(thssong) then
GAMESTATE:GetSongOptionsObject("ModsLevel_Preferred"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Song"):MusicRate(srate)
GAMESTATE:GetSongOptionsObject("ModsLevel_Current"):MusicRate(srate)
end
end
end
end
Expand Down

0 comments on commit 8119385

Please sign in to comment.