diff options
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r-- | src/disaster_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index e86448c5f..50c96f005 100644 --- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -307,7 +307,7 @@ static bool DisasterTick_Ufo(DisasterVehicle *v) RoadVehicle *u; FOR_ALL_ROADVEHICLES(u) { - if (u->IsRoadVehFront()) { + if (u->IsFrontEngine()) { v->dest_tile = u->index; v->age = 0; return true; @@ -319,7 +319,7 @@ static bool DisasterTick_Ufo(DisasterVehicle *v) } else { /* Target a vehicle */ RoadVehicle *u = RoadVehicle::Get(v->dest_tile); - assert(u != NULL && u->type == VEH_ROAD && u->IsRoadVehFront()); + assert(u != NULL && u->type == VEH_ROAD && u->IsFrontEngine()); uint dist = Delta(v->x_pos, u->x_pos) + Delta(v->y_pos, u->y_pos); |