summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-23 09:13:12 +0000
committertron <tron@openttd.org>2005-02-23 09:13:12 +0000
commitf55bde6ee41eacde0fe3aab20b82af4fa99bdfcc (patch)
treeac3b31a0a17904ab3682202b886b12acab039b14 /ttd.c
parent50ac80cb4c08d76c57b540744e7394ebd3ccc300 (diff)
downloadopenttd-f55bde6ee41eacde0fe3aab20b82af4fa99bdfcc.tar.xz
(svn r1910) Move two variables out of variables.h which are only used locally
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ttd.c b/ttd.c
index bf39ffb22..42a2e09f6 100644
--- a/ttd.c
+++ b/ttd.c
@@ -491,13 +491,15 @@ int ttd_main(int argc, char* argv[])
char musicdriver[16], sounddriver[16], videodriver[16];
int resolution[2] = {0,0};
uint startdate = -1;
+ bool dedicated;
+
musicdriver[0] = sounddriver[0] = videodriver[0] = 0;
_game_mode = GM_MENU;
_switch_mode = SM_MENU;
_switch_mode_errorstr = INVALID_STRING_ID;
_dedicated_forks = false;
- _dedicated_enabled = false;
+ dedicated = false;
// The last param of the following function means this:
// a letter means: it accepts that param (e.g.: -h)
@@ -519,7 +521,7 @@ int ttd_main(int argc, char* argv[])
sprintf(musicdriver,"null");
sprintf(sounddriver,"null");
sprintf(videodriver,"dedicated");
- _dedicated_enabled = true;
+ dedicated = true;
} break;
case 'f': {
_dedicated_forks = true;
@@ -590,7 +592,7 @@ int ttd_main(int argc, char* argv[])
if (resolution[0]) { _cur_resolution[0] = resolution[0]; _cur_resolution[1] = resolution[1]; }
if (startdate != (uint)-1) _patches.starting_date = startdate;
- if (_dedicated_forks && !_dedicated_enabled)
+ if (_dedicated_forks && !dedicated)
_dedicated_forks = false;
// enumerate language files