diff options
author | rubidium <rubidium@openttd.org> | 2007-05-04 22:38:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-04 22:38:36 +0000 |
commit | bc1901a6e41b2abc5a6db5ac89ff990d9427a170 (patch) | |
tree | bd897a4b2c317680e808a00a3c12f0f238b07377 /src/vehicle.cpp | |
parent | 93793eb89ad5e3286aff7dc101191782986d5e42 (diff) | |
download | openttd-bc1901a6e41b2abc5a6db5ac89ff990d9427a170.tar.xz |
(svn r9784) -Codechange: remove unused variable.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 3d2642d36..0722855fe 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2250,7 +2250,6 @@ void VehicleEnterDepot(Vehicle *v) if (HASBIT(t.flags, OFB_PART_OF_ORDERS)) { /* Part of orders */ - if (v->type == VEH_TRAIN) v->u.rail.days_since_order_progr = 0; v->cur_order_index++; } else if (HASBIT(t.flags, OFB_HALT_IN_DEPOT)) { /* Force depot visit */ @@ -2746,7 +2745,7 @@ static const SaveLoad _train_desc[] = { SLE_VARX(cpp_offsetof(Vehicle, u) + cpp_offsetof(VehicleRail, track), SLE_UINT8), SLE_CONDVARX(cpp_offsetof(Vehicle, u) + cpp_offsetof(VehicleRail, flags), SLE_UINT8, 2, SL_MAX_VERSION), - SLE_CONDVARX(cpp_offsetof(Vehicle, u) + cpp_offsetof(VehicleRail, days_since_order_progr), SLE_UINT16, 2, SL_MAX_VERSION), + SLE_CONDNULL(2, 2, 59), SLE_CONDNULL(2, 2, 19), /* reserve extra space in savegame here. (currently 11 bytes) */ |