diff options
author | rubidium <rubidium@openttd.org> | 2006-05-22 10:08:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-05-22 10:08:23 +0000 |
commit | 59174d8dbcf748cf64b7a7f26ab80da1b82a23ee (patch) | |
tree | df0467ef6ae6c5270b12a8091c96613f52f807d3 | |
parent | a6fc0e521d2fae329a7fc018a030744ca2160116 (diff) | |
download | openttd-59174d8dbcf748cf64b7a7f26ab80da1b82a23ee.tar.xz |
(svn r4945) Fix (r3726): make -t command line option (set starting date/year) work again
-rw-r--r-- | openttd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |