Skip to content

Commit 780cc14

Browse files
committed
redo percentage measurements
1 parent 989275f commit 780cc14

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PlayerObject.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ class $modify(MyPlayerObject, PlayerObject) {
2424
const auto theLevel = pl->m_level;
2525
if (!theLevel || theLevel->isPlatformer()) return;
2626
if (this == pl->m_player2 && theLevel->m_twoPlayerMode) return;
27-
if (this == pl->m_player1 && !this->m_isDead) return;
2827

2928
Manager* manager = Manager::getSharedInstance();
30-
manager->lastDeathPercent = pl->getCurrentPercent();
29+
if (this == pl->m_player1 && this->m_isDead) manager->lastDeathPercent = pl->getCurrentPercent();
3130

3231
const bool isNewBest = MyPlayerObject::isNewBest(pl);
3332
const bool shouldPlayNewBestSFX = getBool("newBestSFX") && isNewBest;

0 commit comments

Comments
 (0)