summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-05-22 10:08:23 +0000
committerrubidium <rubidium@openttd.org>2006-05-22 10:08:23 +0000
commitba6ea3d3594c32ab954309d9199a400058142d6a (patch)
treedf0467ef6ae6c5270b12a8091c96613f52f807d3 /openttd.c
parent928fbe34f21d91052f3446df9d7e9773bdf32d47 (diff)
downloadopenttd-ba6ea3d3594c32ab954309d9199a400058142d6a.tar.xz
(svn r4945) Fix (r3726): make -t command line option (set starting date/year) work again
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openttd.c b/openttd.c
index fab4ba049..bf6250ff7 100644
--- a/openttd.c
+++ b/openttd.c
@@ -46,6 +46,7 @@
#include "waypoint.h"
#include "ai/ai.h"
#include "train.h"
+#include "settings.h"
#include <stdarg.h>
@@ -406,7 +407,7 @@ int ttd_main(int argc, char* argv[])
if (sounddriver[0]) ttd_strlcpy(_ini_sounddriver, sounddriver, sizeof(_ini_sounddriver));
if (videodriver[0]) ttd_strlcpy(_ini_videodriver, videodriver, sizeof(_ini_videodriver));
if (resolution[0]) { _cur_resolution[0] = resolution[0]; _cur_resolution[1] = resolution[1]; }
- if (startdate != (uint)-1) _patches.starting_date = startdate;
+ if (startdate != (uint)-1) _patches_newgame.starting_date = startdate;
if (_dedicated_forks && !dedicated) _dedicated_forks = false;