Skip to content

Commit

Permalink
Fix the step callback for autoplayCPU
Browse files Browse the repository at this point in the history
broken by an update to replays
  • Loading branch information
poco0317 committed Nov 21, 2018
1 parent 7046dca commit 3736163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2829,9 +2829,9 @@ Player::CrossedRows(int iLastRowCrossed,
this->m_Timing->IsJudgableAtRow(iRow)) {
if ((m_pPlayerState->m_PlayerController == PC_REPLAY &&
PlayerAI::GetReplayType() != 2) ||
m_pPlayerState->m_PlayerController == PC_AUTOPLAY) {
m_pPlayerState->m_PlayerController == PC_AUTOPLAY || m_pPlayerState->m_PlayerController == PC_CPU) {
Step(iTrack, iRow, now, false, false);
if (m_pPlayerState->m_PlayerController == PC_AUTOPLAY) {
if (m_pPlayerState->m_PlayerController == PC_AUTOPLAY || m_pPlayerState->m_PlayerController == PC_CPU) {
if (m_pPlayerStageStats)
m_pPlayerStageStats->m_bDisqualified = true;
}
Expand Down

0 comments on commit 3736163

Please sign in to comment.