summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-16 11:39:55 +0000
committerrubidium <rubidium@openttd.org>2006-08-16 11:39:55 +0000
commite87e065e41d324ae29e0c1762f36193a69fb7374 (patch)
tree90102c4cf1f03e52dfe00d3cd1315b6cd9e6b399 /openttd.c
parentca226df7398391adb3f4eda21aeaf593df05bdba (diff)
downloadopenttd-e87e065e41d324ae29e0c1762f36193a69fb7374.tar.xz
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openttd.c b/openttd.c
index 8de704112..3e1ff28c4 100644
--- a/openttd.c
+++ b/openttd.c
@@ -316,7 +316,7 @@ int ttd_main(int argc, char *argv[])
const char *optformat;
char musicdriver[16], sounddriver[16], videodriver[16];
int resolution[2] = {0,0};
- uint startyear = -1;
+ Year startyear = INVALID_YEAR;
bool dedicated = false;
bool network = false;
@@ -408,7 +408,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 (startyear != (uint)-1) _patches_newgame.starting_year = startyear;
+ if (startyear != INVALID_YEAR) _patches_newgame.starting_year = startyear;
if (_dedicated_forks && !dedicated) _dedicated_forks = false;