Mercurial > hg > openttd
changeset 17065:421d71eb2bd9 draft
(svn r21802) -Cleanup (r2600): remove unused _vehicle_id_ctr_day
author | smatz <smatz@openttd.org> |
---|---|
date | Sat, 15 Jan 2011 14:20:34 +0000 |
parents | 23990d00e37d |
children | 21cc53f6368d |
files | src/saveload/misc_sl.cpp src/saveload/oldloader_sl.cpp src/vehicle.cpp src/vehicle_func.h |
diffstat | 4 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/saveload/misc_sl.cpp +++ b/src/saveload/misc_sl.cpp @@ -67,7 +67,7 @@ SLEG_CONDVAR(_date, SLE_INT32, 31, SL_MAX_VERSION), SLEG_VAR(_date_fract, SLE_UINT16), SLEG_VAR(_tick_counter, SLE_UINT16), - SLEG_VAR(_vehicle_id_ctr_day, SLE_UINT16), + SLE_CONDNULL(2, 0, 156), // _vehicle_id_ctr_day SLEG_VAR(_age_cargo_skip_counter, SLE_UINT8), SLE_CONDNULL(1, 0, 45), SLEG_CONDVAR(_cur_tileloop_tile, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), @@ -92,7 +92,7 @@ SLEG_CONDVAR(_load_check_data.current_date, SLE_INT32, 31, SL_MAX_VERSION), SLE_NULL(2), // _date_fract SLE_NULL(2), // _tick_counter - SLE_NULL(2), // _vehicle_id_ctr_day + SLE_CONDNULL(2, 0, 156), // _vehicle_id_ctr_day SLE_NULL(1), // _age_cargo_skip_counter SLE_CONDNULL(1, 0, 45), SLE_CONDNULL(2, 0, 5), // _cur_tileloop_tile
--- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -1656,7 +1656,7 @@ OCL_ASSERT( OC_TTO, 0x496AC ), - OCL_VAR ( OC_UINT16, 1, &_vehicle_id_ctr_day ), + OCL_NULL ( 2 ), // _vehicle_id_ctr_day OCL_CHUNK( 8, LoadOldSubsidy ),
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -58,7 +58,6 @@ #define GEN_HASH(x, y) ((GB((y), 6, 6) << 6) + GB((x), 7, 6)) -VehicleID _vehicle_id_ctr_day; VehicleID _new_vehicle_id; uint16 _returned_refit_capacity; ///< Stores the capacity after a refit operation. uint16 _returned_mail_refit_capacity; ///< Stores the mail capacity after a refit operation (Aircraft only).
--- a/src/vehicle_func.h +++ b/src/vehicle_func.h @@ -172,7 +172,6 @@ CommandCost EnsureNoTrainOnTrackBits(TileIndex tile, TrackBits track_bits); void StopAllVehicles(); -extern VehicleID _vehicle_id_ctr_day; extern VehicleID _new_vehicle_id; extern uint16 _returned_refit_capacity; extern uint16 _returned_mail_refit_capacity;