Fixed FRAMES macro to use ceil division

This commit is contained in:
expected-ingot
2025-06-30 00:55:55 +02:00
parent caf8c96c87
commit de87271199
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
#define MAX_HAND_SIZE 16
#define MAX_DECK_SIZE 52
#define MAX_SELECTION_SIZE 5
#define FRAMES(x) ((x) / game_speed)
#define FRAMES(x) (((x) + game_speed - 1) / game_speed)
enum GameState
{
+1 -1
View File
@@ -15,7 +15,7 @@
#include "soundbank.h"
static int timer = 1; // This might already exist in libtonc but idk so i'm just making my own
static int game_speed = 1;
static int game_speed = 4;
static int background = 0;
static enum GameState game_state = GAME_PLAYING;