summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-20 16:51:55 +0000
committerrubidium <rubidium@openttd.org>2009-01-20 16:51:55 +0000
commiteeb38a8e3a2e76e4fed25def77a2ee4d0fae2b27 (patch)
treef9dd4fc7b570b06c529e9e2384c58c0dd92f2003 /src/video
parent3d35b3c2cc8b227d0cc2df61b4e8dbd70b6a78f1 (diff)
downloadopenttd-eeb38a8e3a2e76e4fed25def77a2ee4d0fae2b27.tar.xz
(svn r15176) -Fix [FS#2554]: querying the content server could free when resolving the hostname or connecting takes long/is timing out.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/dedicated_v.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index bd3a1bd2f..57f936d98 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -297,6 +297,7 @@ void VideoDriver_Dedicated::MainLoop()
DedicatedHandleKeyInput();
cur_ticks = GetTime();
+ _realtime_tick += cur_ticks - prev_cur_ticks;
if (cur_ticks >= next_tick || cur_ticks < prev_cur_ticks) {
next_tick = cur_ticks + 30;