(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:
rubidium
2006-08-16 11:39:55 +00:00
parent 50e96f8ff9
commit 3cab5f30c0
32 changed files with 211 additions and 203 deletions

View File

@@ -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) {