(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.

This commit is contained in:
terkhen
2011-01-19 18:44:13 +00:00
parent 613743538d
commit b5468e7a80
8 changed files with 29 additions and 29 deletions

View File

@@ -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;
}
}