Skip to content

Commit

Permalink
Fix life graph oddities related to Mines
Browse files Browse the repository at this point in the history
missing or hitting a mine caused the graph to record a point of whatever the wife percent was at that moment instead of the life
in its current state this is only meant for testing using a define and recompiling the game
  • Loading branch information
poco0317 committed Sep 30, 2019
1 parent 5be433d commit 7e55f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Etterna/Actor/Gameplay/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1601,10 +1601,11 @@ Player::ChangeLifeRecord()
fLife, STATSMAN->m_CurStageStats.m_fStepsSeconds);
}

// seemsgood
void
Player::ChangeWifeRecord()
{
// Sets the life ... to the wife....
// That's not right.
if (m_pPlayerStageStats)
m_pPlayerStageStats->SetLifeRecordAt(
curwifescore / maxwifescore,
Expand Down Expand Up @@ -2980,7 +2981,6 @@ Player::SetMineJudgment(TapNoteScore tns, int iTrack)
#else
if (m_pPlayerState->m_PlayerController == PC_HUMAN ||
m_pPlayerState->m_PlayerController == PC_REPLAY) {
ChangeWifeRecord();
m_pPlayerStageStats->m_fWifeScore =
curwifescore / totalwifescore;
m_pPlayerStageStats->CurWifeScore = curwifescore;
Expand Down

0 comments on commit 7e55f80

Please sign in to comment.