aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 427c55d..2acbb97 100644
--- a/src/game.c
+++ b/src/game.c
@@ -59,6 +59,11 @@ void initGame(Game* game)
"Find Things");
SetWindowState(FLAG_WINDOW_RESIZABLE);
+ if (game->settings.maxFPS != 0)
+ {
+ SetTargetFPS(game->settings.maxFPS);
+ }
+
// Screen.
game->screen.render = LoadRenderTexture(game->settings.screenWidth,
game->settings.screenHeight);