We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989275f commit 780cc14Copy full SHA for 780cc14
src/PlayerObject.cpp
@@ -24,10 +24,9 @@ class $modify(MyPlayerObject, PlayerObject) {
24
const auto theLevel = pl->m_level;
25
if (!theLevel || theLevel->isPlatformer()) return;
26
if (this == pl->m_player2 && theLevel->m_twoPlayerMode) return;
27
- if (this == pl->m_player1 && !this->m_isDead) return;
28
29
Manager* manager = Manager::getSharedInstance();
30
- manager->lastDeathPercent = pl->getCurrentPercent();
+ if (this == pl->m_player1 && this->m_isDead) manager->lastDeathPercent = pl->getCurrentPercent();
31
32
const bool isNewBest = MyPlayerObject::isNewBest(pl);
33
const bool shouldPlayNewBestSFX = getBool("newBestSFX") && isNewBest;
0 commit comments