(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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user