diff --git a/changelog.md b/changelog.md index 9c70d67..53ced00 100644 --- a/changelog.md +++ b/changelog.md @@ -4,7 +4,7 @@ * Potentially improve performance * Fix keyboard input not working on Linux * Significantly improve input precision on Linux -* Don't submit CBF completions to leaderboards anymore +* Don't submit CBF completions on star rated levels to leaderboards # v1.1.21 diff --git a/src/main.cpp b/src/main.cpp index d011f6a..f754d99 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -404,8 +404,9 @@ class $modify(CreatorLayer) { class $modify(GJGameLevel) { void savePercentage(int percent, bool p1, int clicks, int attempts, bool valid) { valid = ( - Mod::get()->getSettingValue("soft-toggle") && - !Mod::get()->getSettingValue("actual-delta") + Mod::get()->getSettingValue("soft-toggle") + && !Mod::get()->getSettingValue("actual-delta") + || this->m_stars == 0 ); GJGameLevel::savePercentage(percent, p1, clicks, attempts, valid);