diff options
author | rubidium <rubidium@openttd.org> | 2006-08-16 11:39:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-16 11:39:55 +0000 |
commit | 3cab5f30c06035034bcf5b513c2eee57b8ec11e9 (patch) | |
tree | 90102c4cf1f03e52dfe00d3cd1315b6cd9e6b399 /engine.c | |
parent | 50e96f8ff92bad28741ca3d360a4e7366072748d (diff) | |
download | openttd-3cab5f30c06035034bcf5b513c2eee57b8ec11e9.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 'engine.c')
-rw-r--r-- | engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -238,7 +238,7 @@ void EnginesDailyLoop(void) { EngineID i; - if (_cur_year >= 130) return; + if (_cur_year >= 2050) return; for (i = 0; i != lengthof(_engines); i++) { Engine *e = &_engines[i]; @@ -359,7 +359,7 @@ void EnginesMonthlyLoop(void) { Engine *e; - if (_cur_year < 130) { + if (_cur_year < 2050) { for (e = _engines; e != endof(_engines); e++) { // Age the vehicle if (e->flags & ENGINE_AVAILABLE && e->age != 0xFFFF) { |