mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
use rounding ticklength to get better results
This commit is contained in:
parent
78e9c71f31
commit
611fe1286f
@ -49,7 +49,7 @@ void Settings_Load()
|
|||||||
|
|
||||||
int maxTicks = GetInt("maxgameticks", 0);
|
int maxTicks = GetInt("maxgameticks", 0);
|
||||||
if (maxTicks > 0 && maxTicks <= 1000)
|
if (maxTicks > 0 && maxTicks <= 1000)
|
||||||
ddraw->ticklength = 1000.0f / maxTicks;
|
ddraw->ticklength = 1000.0f / maxTicks + 0.5f;
|
||||||
|
|
||||||
if ((ddraw->fullscreen = GetBool("fullscreen", FALSE)))
|
if ((ddraw->fullscreen = GetBool("fullscreen", FALSE)))
|
||||||
WindowRect.left = WindowRect.top = -32000;
|
WindowRect.left = WindowRect.top = -32000;
|
||||||
@ -291,11 +291,11 @@ static void CreateSettingsIni()
|
|||||||
"\n"
|
"\n"
|
||||||
"; Dune 2000\n"
|
"; Dune 2000\n"
|
||||||
"[dune2000]\n"
|
"[dune2000]\n"
|
||||||
"maxgameticks=58\n"
|
"maxgameticks=60\n"
|
||||||
"\n"
|
"\n"
|
||||||
"; Dune 2000 Online\n"
|
"; Dune 2000 Online\n"
|
||||||
"[dune2000-spawn]\n"
|
"[dune2000-spawn]\n"
|
||||||
"maxgameticks=58\n"
|
"maxgameticks=60\n"
|
||||||
"\n"
|
"\n"
|
||||||
"; Command & Conquer: Tiberian Sun\n"
|
"; Command & Conquer: Tiberian Sun\n"
|
||||||
"[game]\n"
|
"[game]\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user