(svn r14680) -Feature(ette) [FS#2434]: Use property 4 (model life) also for wagons.

Setting property 4 to 0xFF will protect the vehicle (engine or wagon) from expireing. (Necessary since early introduction dates)
Savegames will only be affected after 'resetengines'.
This commit is contained in:
frosch
2008-12-16 18:09:40 +00:00
parent 94a5f66427
commit 1fa409177c
2 changed files with 10 additions and 14 deletions

View File

@@ -1347,13 +1347,7 @@ static const OldChunks engine_chunk[] = {
static bool LoadOldEngine(LoadgameState *ls, int num)
{
Engine *e = GetTempDataEngine(num);
if (!LoadChunk(ls, e, engine_chunk)) return false;
/* Make sure wagons are marked as do-not-age */
if ((num >= 27 && num < 54) || (num >= 57 && num < 84) || (num >= 89 && num < 116))
e->age = 0xFFFF;
return true;
return LoadChunk(ls, e, engine_chunk);
}
static bool LoadOldEngineName(LoadgameState *ls, int num)