]> git.lizzy.rs Git - nothing.git/blobdiff - src/main.c
TODO(#395)
[nothing.git] / src / main.c
index 5654f4f3aff4dbeb8957a3b2e86f2baeaa09d377..0f9921d9498d3c681a62c7b13214b1b3de3504ce 100644 (file)
@@ -11,7 +11,6 @@
 #include "game/level/player.h"
 #include "game/sound_samples.h"
 #include "game/sprite_font.h"
-#include "math/minmax.h"
 #include "math/point.h"
 #include "sdl/renderer.h"
 #include "system/error.h"
@@ -189,8 +188,9 @@ int main(int argc, char *argv[])
         }
 
         const int64_t end_frame_time = (int64_t) SDL_GetTicks();
-
+#define max_int64(a, b) (a > b ? a : b)
         SDL_Delay((unsigned int) max_int64(10, delta_time - (end_frame_time - begin_frame_time)));
+#undef max_int64
     }
 
     RETURN_LT(lt, 0);