Skip to content

Commit

Permalink
ignore unrated levels
Browse files Browse the repository at this point in the history
  • Loading branch information
theyareonit committed Sep 14, 2024
1 parent 0ab75bb commit 0988804
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>("soft-toggle") &&
!Mod::get()->getSettingValue<bool>("actual-delta")
Mod::get()->getSettingValue<bool>("soft-toggle")
&& !Mod::get()->getSettingValue<bool>("actual-delta")
|| this->m_stars == 0
);

GJGameLevel::savePercentage(percent, p1, clicks, attempts, valid);
Expand Down

0 comments on commit 0988804

Please sign in to comment.