Skip to content

Commit c7e7351

Browse files
committed
tweak the timings
1 parent 934e905 commit c7e7351

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PlayLayer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ class $modify(MyPlayLayer, PlayLayer) {
154154
log::info("isNewBestFloat: {}", MyPlayLayer::isNewBestFloat(this));
155155
log::info("manager->hasPRNTSCRN: {}", manager->hasPRNTSCRN);
156156
if (!manager->hasPRNTSCRN || !MyPlayLayer::isNewBestFloat(this) || !getModBool("screenshotOnDeath")) return;
157-
(void) PRNTSCRN::screenshotNode(CCScene::get());
157+
this->scheduleOnce(schedule_selector(MyPlayLayer::PRNTSCRNOnDeath), .275f);
158+
}
159+
void PRNTSCRNOnDeath(float) {
160+
(void) PRNTSCRN::screenshotNodeAdvanced(this, {}, {});
161+
(void) PRNTSCRN::screenshotNodeAdvanced(CCScene::get(), {}, {});
158162
}
159163
};

0 commit comments

Comments
 (0)