From 767e21d5fa480ab844163fa40450af8bb8216234 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 13 Oct 2025 20:26:20 -0700 Subject: [PATCH] made the lerped temp score expression clearer --- include/game.h | 2 +- source/game.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/game.h b/include/game.h index 8a2892c..65362ad 100644 --- a/include/game.h +++ b/include/game.h @@ -99,6 +99,6 @@ int get_num_discards_remaining(void); int get_money(void); int get_game_speed(void); -void set_game_speed(int game_speed_); +void set_game_speed(int new_game_speed); #endif // GAME_H diff --git a/source/game.c b/source/game.c index 15037f5..d09a4a6 100644 --- a/source/game.c +++ b/source/game.c @@ -32,7 +32,7 @@ static uint rng_seed = 0; static uint timer = 0; // This might already exist in libtonc but idk so i'm just making my own -static int game_speed = 3; // BY DEFAULT IS SET TO 1, but if changed to 2 or more, should speed up all (or most) of the game aspects that should be sped up by speed, as in the original game. +static int game_speed = 1; // BY DEFAULT IS SET TO 1, but if changed to 2 or more, should speed up all (or most) of the game aspects that should be sped up by speed, as in the original game. static int background = 0; static enum GameState game_state = GAME_SPLASH_SCREEN; // The current game state, this is used to determine what the game is doing at any given time @@ -1293,7 +1293,7 @@ static void game_playing_process_input_and_state() else if (play_state == PLAY_ENDED) { lerped_temp_score -= int2fx(temp_score * get_game_speed())/ 40; - lerped_score += int2fx(temp_score* get_game_speed()) / 40; + lerped_score += int2fx(temp_score * get_game_speed()) / 40; if (lerped_temp_score > 0) {