summaryrefslogtreecommitdiff
path: root/src/video/dedicated_v.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-19 10:35:59 +0000
committerrubidium <rubidium@openttd.org>2010-11-19 10:35:59 +0000
commitab44c91778618147efd12f62fd3b74df872e599d (patch)
treed9ca07e5fd6a7f6ead55dc34eac6c18a53e93ac5 /src/video/dedicated_v.cpp
parent43692e514c476923e35d59fc2fe9053e381a4920 (diff)
downloadopenttd-ab44c91778618147efd12f62fd3b74df872e599d.tar.xz
(svn r21252) -Codechange: introduce a constant for the number of milliseconds per game tick and use it
Diffstat (limited to 'src/video/dedicated_v.cpp')
-rw-r--r--src/video/dedicated_v.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index 2e35f4678..f2ebd0f00 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -256,7 +256,7 @@ static void DedicatedHandleKeyInput()
void VideoDriver_Dedicated::MainLoop()
{
uint32 cur_ticks = GetTime();
- uint32 next_tick = cur_ticks + 30;
+ uint32 next_tick = cur_ticks + MILLISECONDS_PER_TICK;
/* Signal handlers */
#if defined(UNIX) || defined(PSP)
@@ -305,7 +305,7 @@ void VideoDriver_Dedicated::MainLoop()
cur_ticks = GetTime();
_realtime_tick += cur_ticks - prev_cur_ticks;
if (cur_ticks >= next_tick || cur_ticks < prev_cur_ticks || _ddc_fastforward) {
- next_tick = cur_ticks + 30;
+ next_tick = cur_ticks + MILLISECONDS_PER_TICK;
GameLoop();
UpdateWindows();