(svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use VARDEF and put them in a more logical location

This commit is contained in:
rubidium
2010-07-19 15:44:49 +00:00
parent 1441de3950
commit 8894ae2ccb
6 changed files with 9 additions and 10 deletions

View File

@@ -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;