(svn r19341) -Codechange: Move GOINGUP/GOINGDOWN flags to GroundVehicle.
-Codechange: Move GetSlopeResistance to GroundVehicle.
This commit is contained in:
@@ -2072,6 +2072,18 @@ bool AfterLoadGame()
|
||||
st->airport.h = st->GetAirportSpec()->size_y;
|
||||
}
|
||||
}
|
||||
|
||||
Train *t;
|
||||
FOR_ALL_TRAINS(t) {
|
||||
/* Copy old GOINGUP / GOINGDOWN flags. */
|
||||
if (HasBit(t->flags, 1)) {
|
||||
ClrBit(t->flags, 1);
|
||||
SetBit(t->gv_flags, GVF_GOINGUP_BIT);
|
||||
} else if (HasBit(t->flags, 2)) {
|
||||
ClrBit(t->flags, 2);
|
||||
SetBit(t->gv_flags, GVF_GOINGDOWN_BIT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Road stops is 'only' updating some caches */
|
||||
|
@@ -544,6 +544,7 @@ const SaveLoad *GetVehicleDescription(VehicleType vt)
|
||||
SLE_CONDVAR(Train, wait_counter, SLE_UINT16, 136, SL_MAX_VERSION),
|
||||
|
||||
SLE_CONDNULL(2, 2, 19),
|
||||
SLE_CONDVAR(Train, gv_flags, SLE_UINT16, 139, SL_MAX_VERSION),
|
||||
/* reserve extra space in savegame here. (currently 11 bytes) */
|
||||
SLE_CONDNULL(11, 2, SL_MAX_VERSION),
|
||||
|
||||
|
Reference in New Issue
Block a user