Skip to content

Commit

Permalink
maybe dont accidentally delete offset and noterow storage
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Apr 30, 2017
1 parent e0f53c5 commit af7eee3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3181,15 +3181,20 @@ void Player::SetJudgment( int iRow, int iTrack, const TapNote &tn, TapNoteScore
else
curwifescore += wife2(tn.result.fTapNoteOffset, m_fTimingWindowScale);
maxwifescore += 2;
m_pPlayerStageStats->m_fWifeScore = curwifescore / totalwifescore;


msg.SetParam("WifePercent", 100 * curwifescore / maxwifescore);
msg.SetParam("WifeDifferential", curwifescore - maxwifescore * m_pPlayerState->playertargetgoal);
msg.SetParam("TotalPercent", 100 * curwifescore / totalwifescore);
if (wifescorepersonalbest != m_pPlayerState->playertargetgoal) {
msg.SetParam("WifePBDifferential", curwifescore - maxwifescore * wifescorepersonalbest);
msg.SetParam("WifePBGoal", wifescorepersonalbest);
}

if (m_pPlayerState->m_PlayerController == PC_HUMAN) {
m_pPlayerStageStats->m_fWifeScore = curwifescore / totalwifescore;
m_pPlayerStageStats->m_vOffsetVector.emplace_back(tn.result.fTapNoteOffset);
m_pPlayerStageStats->m_vNoteRowVector.emplace_back(iRow);
}
}

Lua* L= LUA->Get();
Expand Down

0 comments on commit af7eee3

Please sign in to comment.