(svn r16586) -Codechange: don't store lifelength in the savegame; it can easily be calculated, it isn't used often and now changing extend_vehicle_life in game has some effect.

This commit is contained in:
rubidium
2009-06-17 17:13:30 +00:00
parent d09d3566dd
commit 35aabc1d4c
4 changed files with 23 additions and 28 deletions

View File

@@ -406,7 +406,6 @@ static bool FixTTOEngines()
e->duration_phase_1 = oe->duration_phase_1;
e->duration_phase_2 = oe->duration_phase_2;
e->duration_phase_3 = oe->duration_phase_3;
e->lifelength = oe->lifelength;
e->flags = oe->flags;
e->company_avail = 0;
@@ -1439,7 +1438,7 @@ static const OldChunks engine_chunk[] = {
OCL_SVAR( OC_UINT16, Engine, duration_phase_2 ),
OCL_SVAR( OC_UINT16, Engine, duration_phase_3 ),
OCL_SVAR( OC_UINT8, Engine, lifelength ),
OCL_NULL( 1 ), // lifelength
OCL_SVAR( OC_UINT8, Engine, flags ),
OCL_SVAR( OC_UINT8, Engine, preview_company_rank ),
OCL_SVAR( OC_UINT8, Engine, preview_wait ),