Fixed FRAMES macro to use ceil division
This commit is contained in:
+1
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user