(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 523d935882
commit 45213e5708
6 changed files with 9 additions and 10 deletions

View File

@@ -90,6 +90,7 @@ void CallWindowTickEvent();
extern void SetDifficultyLevel(int mode, DifficultySettings *gm_opt);
extern Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY);
extern void ShowOSErrorBox(const char *buf, bool system);
extern bool _dedicated_forks;
/**
* Error handling for fatal user errors.
@@ -567,8 +568,7 @@ int ttd_main(int argc, char *argv[])
#if defined(UNIX) && !defined(__MORPHOS__)
/* We must fork here, or we'll end up without some resources we need (like sockets) */
if (_dedicated_forks)
DedicatedFork();
if (_dedicated_forks) DedicatedFork();
#endif
AI::Initialize();