summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-01-15 14:20:34 +0000
committersmatz <smatz@openttd.org>2011-01-15 14:20:34 +0000
commit2709454040185af96feb80a25f51c412fa6f1ad1 (patch)
tree8429245963dcb576870f3bbf9ace7e8ddc52abe0 /src/saveload
parent7be31ee03e59ad547ceef362284677d232a642aa (diff)
downloadopenttd-2709454040185af96feb80a25f51c412fa6f1ad1.tar.xz
(svn r21802) -Cleanup (r2600): remove unused _vehicle_id_ctr_day
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/misc_sl.cpp4
-rw-r--r--src/saveload/oldloader_sl.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/saveload/misc_sl.cpp b/src/saveload/misc_sl.cpp
index 4415d67d6..0f389246e 100644
--- a/src/saveload/misc_sl.cpp
+++ b/src/saveload/misc_sl.cpp
@@ -67,7 +67,7 @@ static const SaveLoadGlobVarList _date_desc[] = {
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 @@ static const SaveLoadGlobVarList _date_check_desc[] = {
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
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp
index cdb1fff6f..a42e6e14a 100644
--- a/src/saveload/oldloader_sl.cpp
+++ b/src/saveload/oldloader_sl.cpp
@@ -1656,7 +1656,7 @@ static const OldChunks main_chunk[] = {
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 ),