Remove returned timing window table

This commit is contained in:
teejusb
2022-01-05 18:21:28 -08:00
parent 99ee1f2b84
commit a48a5b73ad
3 changed files with 13 additions and 28 deletions
+11 -15
View File
@@ -144,21 +144,17 @@ TapNoteScore PlayerAI::GetTapNoteScore( const PlayerState* pPlayerState )
TapNoteScore score = distribution.GetTapNoteScore();
const auto& disabledWindows = pPlayerState->m_PlayerOptions.GetCurrent().m_twDisabledWindows;
for (int i = score; i >= TNS_W5; i--)
{
TapNoteScore cur_score = (TapNoteScore)i;
// Downgrade the TapNoteScore if that specific window is disabled.
if (cur_score == TNS_W1 && disabledWindows[TW_W1])
score = TNS_W2;
if (cur_score == TNS_W2 && disabledWindows[TW_W2])
score = TNS_W3;
if (cur_score == TNS_W3 && disabledWindows[TW_W3])
score = TNS_W4;
if (cur_score == TNS_W4 && disabledWindows[TW_W4])
score = TNS_W5;
if (cur_score == TNS_W5 && disabledWindows[TW_W5])
score = TNS_None;
}
// Downgrade the TapNoteScore if that specific window is disabled.
if (score == TNS_W1 && disabledWindows[TW_W1])
score = TNS_W2;
if (score == TNS_W2 && disabledWindows[TW_W2])
score = TNS_W3;
if (score == TNS_W3 && disabledWindows[TW_W3])
score = TNS_W4;
if (score == TNS_W4 && disabledWindows[TW_W4])
score = TNS_W5;
if (score == TNS_W5 && disabledWindows[TW_W5])
score = TNS_None;
return score;
}