diff options
author | rubidium <rubidium@openttd.org> | 2009-06-17 17:13:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-06-17 17:13:30 +0000 |
commit | 35aabc1d4c6ab0f2095d3c40fd60dc446eb635b4 (patch) | |
tree | e18c37c6a966c185fda17a838a6de2b123bd1d60 /src/saveload/oldloader_sl.cpp | |
parent | d09d3566ddd86a559819354bad805dfc23622db8 (diff) | |
download | openttd-35aabc1d4c6ab0f2095d3c40fd60dc446eb635b4.tar.xz |
(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.
Diffstat (limited to 'src/saveload/oldloader_sl.cpp')
-rw-r--r-- | src/saveload/oldloader_sl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp index b3358813c..66b8cd085 100644 --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -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 ), |