From ab44c91778618147efd12f62fd3b74df872e599d Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 19 Nov 2010 10:35:59 +0000 Subject: (svn r21252) -Codechange: introduce a constant for the number of milliseconds per game tick and use it --- src/video/dedicated_v.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video/dedicated_v.cpp') 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(); -- cgit v1.2.3-54-g00ecf