summaryrefslogtreecommitdiff
path: root/src/video/cocoa
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/cocoa
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/cocoa')
-rw-r--r--src/video/cocoa/event.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm
index bf643955e..7d7fa4cf8 100644
--- a/src/video/cocoa/event.mm
+++ b/src/video/cocoa/event.mm
@@ -606,7 +606,7 @@ void QZ_GameLoop()
{
uint32 cur_ticks = GetTick();
uint32 last_cur_ticks = cur_ticks;
- uint32 next_tick = cur_ticks + 30;
+ uint32 next_tick = cur_ticks + MILLISECONDS_PER_TICK;
uint32 pal_tick = 0;
#ifdef _DEBUG
@@ -655,7 +655,7 @@ void QZ_GameLoop()
if (cur_ticks >= next_tick || (_fast_forward && !_pause_mode) || cur_ticks < prev_cur_ticks) {
_realtime_tick += cur_ticks - last_cur_ticks;
last_cur_ticks = cur_ticks;
- next_tick = cur_ticks + 30;
+ next_tick = cur_ticks + MILLISECONDS_PER_TICK;
bool old_ctrl_pressed = _ctrl_pressed;