Skip to content

Commit 2d7c432

Browse files
committed
backup
1 parent a310741 commit 2d7c432

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/PlayLayer.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,7 @@ class $modify(MyPlayLayer, PlayLayer) {
144144
newBestNodeProbably->runAction(sequence);
145145
}
146146
}
147-
void updateInfoLabel() {
148-
PlayLayer::updateInfoLabel();
149-
if (!getModBool("enabled") || !m_level || m_level->isPlatformer() || !m_player1->m_isDead || m_isPlatformer) return;
150-
147+
void findAndModifyTheNewBestNode() {
151148
CCNode* newBestNodeProbably = nullptr;
152149
bool hasOrbsLabel = false;
153150
bool hasKeyLabel = false;
@@ -275,6 +272,12 @@ class $modify(MyPlayLayer, PlayLayer) {
275272
if (fontID != 0 && fontID != -3 && getModBool("customFontGoldColor")) hopefullyALabel->setColor({254, 207, 6});
276273
}
277274
}
275+
276+
void updateInfoLabel() {
277+
PlayLayer::updateInfoLabel();
278+
if (!getModBool("enabled") || !m_level || m_level->isPlatformer() || !m_player1->m_isDead || m_isPlatformer) return;
279+
MyPlayLayer::findAndModifyTheNewBestNode();
280+
}
278281
void showNewBest(bool newReward, int orbs, int diamonds, bool demonKey, bool noRetry, bool noTitle) {
279282
PlayLayer::showNewBest(newReward, orbs, diamonds, demonKey, noRetry, noTitle);
280283
if (!getModBool("enabled") || !m_player1->m_isDead || this->m_isPracticeMode || this->m_isTestMode || m_isPlatformer || (m_level && m_level->isPlatformer())) return;

0 commit comments

Comments
 (0)