forked from mirror/OpenTTD
(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
This commit is contained in:
4
engine.c
4
engine.c
@@ -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) {
|
||||
|
Reference in New Issue
Block a user