summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-16 16:37:39 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-16 16:37:39 +0200
commit544f338b8e9ea010eccedbfa24bee5c97b7d3621 (patch)
tree029154f6de1a78c73a6aa9a5dfad2c16fb8928bd /main.c
parentb2ca9b477856cd8ea284389b91d718e8ea814d7b (diff)
walls, msvc building
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.c b/main.c
index 1e66858..d81dc54 100644
--- a/main.c
+++ b/main.c
@@ -3,6 +3,16 @@
#define ASSET_FONT_COUNT 20
#define NUM_AUDIO_CHANNELS 64
+#include <float.h>
+
+#ifndef __FLT_MAX__
+#define __FLT_MAX__ FLT_MAX
+#endif
+
+#ifndef M_PI
+#define _USE_MATH_DEFINES
+#endif
+
#include "project-base/src/project_base.h"
#include "include/SDL2/SDL_mixer.h"
@@ -91,6 +101,8 @@ void handle_args(int argc, char **argv) {
int main(int argc, char **argv)
{
+ fill_game_structs();
+
platform_init(argc, argv, CONFIG_DIRECTORY);
is_fullscreen = settings_get_number_or_default("FULLSCRN", 1);