Skip to content

Commit

Permalink
fix the real sort error culprit
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Dec 31, 2016
1 parent 587b55e commit e4fe142
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ local t = Def.ActorFrame{
if GAMESTATE:GetCurrentSong() ~= nil then
hsTable = getScoresByKey(pn)
if hsTable ~= nil and hsTable[1] ~= nil then
rtTable = SortScores(getRateTable(hsTable))
rtTable = getRateTable(hsTable)
rates,rateIndex = getUsedRates(rtTable)
scoreIndex = 1
score = rtTable[rates[rateIndex]][scoreIndex]
Expand Down
4 changes: 2 additions & 2 deletions Themes/Til Death/Scripts/Scores.lua
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ end

-- Rate filter stuff --
local function scoreComparator(scoreA,scoreB)
local a = GetWifeScoreOrConvertFromDP(scoreA,sortScoreType)
local b = GetWifeScoreOrConvertFromDP(scoreB,sortScoreType)
local a = GetWifeScoreOrConvertFromDP(scoreA)
local b = GetWifeScoreOrConvertFromDP(scoreB)
if a == b then
return scoreA:GetWifeScore() > scoreB:GetWifeScore()
end
Expand Down
12 changes: 6 additions & 6 deletions src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,12 @@ float HighScore::ConvertDpToWife() {
float ts = 1.f;
float estpoints = 0.f;
float maxpoints = 0.f;
estpoints += m_Impl->iTapNoteScores[TNS_W1] * wife2(.002249f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_W2] * wife2(.004499f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_W3] * wife2(.008999f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_W4] * wife2(.013499f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_W5] * wife2(.017999f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_Miss] * wife2(.017999f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_W1] * wife2(.02249f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_W2] * wife2(.04499f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_W3] * wife2(.08999f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_W4] * wife2(.13499f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_W5] * wife2(.17999f, ts);
estpoints += m_Impl->iTapNoteScores[TNS_Miss] * wife2(.17999f, ts);

FOREACH_ENUM(TapNoteScore, tns)
maxpoints += 2 * m_Impl->iTapNoteScores[tns];
Expand Down

0 comments on commit e4fe142

Please sign in to comment.