diff options
author | terkhen <terkhen@openttd.org> | 2011-01-19 18:44:13 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-01-19 18:44:13 +0000 |
commit | b5468e7a80670a45305b1af63d8f39d8034fa366 (patch) | |
tree | e66da9154edf22820edfc56573eded8bda90b73f /src/saveload | |
parent | 613743538d3946888660a5dd413e463f2052d6a9 (diff) | |
download | openttd-b5468e7a80670a45305b1af63d8f39d8034fa366.tar.xz |
(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 2 | ||||
-rw-r--r-- | src/saveload/vehicle_sl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index b56a33215..da7db48d9 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -1966,7 +1966,7 @@ bool AfterLoadGame() FOR_ALL_DISASTERVEHICLES(v) { if (v->subtype == 2/*ST_SMALL_UFO*/ && v->current_order.GetDestination() != 0) { const Vehicle *u = Vehicle::GetIfValid(v->dest_tile); - if (u == NULL || u->type != VEH_ROAD || !RoadVehicle::From(u)->IsRoadVehFront()) { + if (u == NULL || u->type != VEH_ROAD || !RoadVehicle::From(u)->IsFrontEngine()) { delete v; } } diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index 4d65a12b1..398f74e2f 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -325,7 +325,7 @@ void AfterLoadVehicles(bool part_of_load) case VEH_ROAD: { RoadVehicle *rv = RoadVehicle::From(v); - if (rv->IsRoadVehFront()) { + if (rv->IsFrontEngine()) { RoadVehUpdateCache(rv); if (_settings_game.vehicle.roadveh_acceleration_model != AM_ORIGINAL) { rv->CargoChanged(); |