summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-09 17:08:44 +0000
committerrubidium <rubidium@openttd.org>2010-04-09 17:08:44 +0000
commit465e3be10509dd444edb3c7395f97115de1ad477 (patch)
tree764ad9acedcf579294c350b7337dc50ba7d968af /src/video
parent12e75643af3610ccb6b4cb8666f8810e63a98eaf (diff)
downloadopenttd-465e3be10509dd444edb3c7395f97115de1ad477.tar.xz
(svn r19593) -Codechange: improve loading/executing the desync logs
Diffstat (limited to 'src/video')
-rw-r--r--src/video/dedicated_v.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index 69de090ab..37797f7e4 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -300,13 +300,15 @@ void VideoDriver_Dedicated::MainLoop()
cur_ticks = GetTime();
_realtime_tick += cur_ticks - prev_cur_ticks;
- if (cur_ticks >= next_tick || cur_ticks < prev_cur_ticks) {
+ if (cur_ticks >= next_tick || cur_ticks < prev_cur_ticks || _ddc_fastforward) {
next_tick = cur_ticks + 30;
GameLoop();
UpdateWindows();
}
- CSleep(1);
+
+ /* Don't sleep when fast forwarding (for desync debugging) */
+ if (!_ddc_fastforward) CSleep(1);
}
}