diff options
author | rubidium <rubidium@openttd.org> | 2010-07-19 15:44:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-07-19 15:44:49 +0000 |
commit | 45213e5708b3a8ece9fae32951d908db3bf5c732 (patch) | |
tree | 5d1f6dd0a73f04e02afec165b3569e2551cec27a /src/openttd.cpp | |
parent | 523d9358826cbeed6b13a85159498ef0760ba938 (diff) | |
download | openttd-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/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 78cd3d6e2..808f8a3e7 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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(); |