Skip to content

Commit

Permalink
Update HighScoreHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
fexed committed Aug 4, 2022
1 parent 8e5a968 commit 02bdb3e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ static boolean postHighScore(Context context, int score) {
SharedPreferences prefs = context.getSharedPreferences("com.fexed.spacecadetpinball", Context.MODE_PRIVATE);
Log.d("RANKS", prefs.getBoolean("cheatsused", false) + " " + score);

if (!prefs.getBoolean("cheatsused", true)) {
postScore(context, true, true);
if (prefs.getBoolean("cheatsused", false)) {
postScore(context, true, false);
int oldscore = prefs.getInt("highscore", 0);
Expand All @@ -67,7 +65,6 @@ static boolean postHighScore(Context context, int score) {
return true;
}
} else {
postScore(context, true, false);
postScore(context, true, true);
int oldscore = prefs.getInt("cheathighscore", 0);
if (score > oldscore) {
Expand Down

0 comments on commit 02bdb3e

Please sign in to comment.