Remove returned timing window table
This commit is contained in:
+11
-15
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user