summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-19 15:44:49 +0000
committerrubidium <rubidium@openttd.org>2010-07-19 15:44:49 +0000
commit45213e5708b3a8ece9fae32951d908db3bf5c732 (patch)
tree5d1f6dd0a73f04e02afec165b3569e2551cec27a /src/video
parent523d9358826cbeed6b13a85159498ef0760ba938 (diff)
downloadopenttd-45213e5708b3a8ece9fae32951d908db3bf5c732.tar.xz
(svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use VARDEF and put them in a more logical location
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 2ce43f4c1..48e65c747 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -132,6 +132,9 @@ static void CloseWindowsConsoleThread()
static void *_dedicated_video_mem;
+/* Whether a fork has been done. */
+bool _dedicated_forks;
+
extern bool SafeSaveOrLoad(const char *filename, int mode, GameMode newgm, Subdirectory subdir);
extern void SwitchToMode(SwitchMode new_mode);
@@ -295,8 +298,7 @@ void VideoDriver_Dedicated::MainLoop()
uint32 prev_cur_ticks = cur_ticks; // to check for wrapping
InteractiveRandom(); // randomness
- if (!_dedicated_forks)
- DedicatedHandleKeyInput();
+ if (!_dedicated_forks) DedicatedHandleKeyInput();
cur_ticks = GetTime();
_realtime_tick += cur_ticks - prev_cur_ticks;