Skip to content

Commit 1a8f0a5

Browse files
committed
safegaurd against fake newbests and whatnot
1 parent 6a470f8 commit 1a8f0a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PlayLayer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ class $modify(MyPlayLayer, PlayLayer) {
151151
}
152152
void showNewBest(bool newReward, int orbs, int diamonds, bool demonKey, bool noRetry, bool noTitle) {
153153
PlayLayer::showNewBest(newReward, orbs, diamonds, demonKey, noRetry, noTitle);
154+
if (!getModBool("enabled") || !m_player1->m_isDead || this->m_isPracticeMode || this->m_isTestMode) return;
154155
log::info("isNewBestFloat: {}", MyPlayLayer::isNewBestFloat(this));
155156
log::info("manager->hasPRNTSCRN: {}", manager->hasPRNTSCRN);
156157
if (!manager->hasPRNTSCRN || !MyPlayLayer::isNewBestFloat(this) || !getModBool("screenshotOnDeath")) return;

0 commit comments

Comments
 (0)