From 6cb0b07621172efb49c1d168c5adf6917f9a2e14 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 15 Sep 2018 16:32:36 +0200 Subject: [PATCH] fix for last commit --- src/render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/render.c b/src/render.c index fc58ae4..311b1a1 100644 --- a/src/render.c +++ b/src/render.c @@ -162,13 +162,13 @@ static void SetMaxFPS(int baseMaxFPS) } } - if (baseMaxFPS < 0) + if (MaxFPS < 0) MaxFPS = ddraw->mode.dmDisplayFrequency; - if (baseMaxFPS == 0) + if (MaxFPS == 0) MaxFPS = 125; - if (baseMaxFPS >= 1000) + if (MaxFPS >= 1000) MaxFPS = 0; if (MaxFPS > 0)