(svn r16948) -Codechange: some code reductions and usage of wrapper functions

This commit is contained in:
rubidium
2009-07-25 10:39:58 +00:00
parent 7440ec7a73
commit 4017439c37
3 changed files with 6 additions and 10 deletions

View File

@@ -198,7 +198,7 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or
}
return INVALID_TILE;
}
case OT_GOTO_WAYPOINT: return v->type == VEH_TRAIN ? ::Waypoint::Get(order->GetDestination())->xy : ::Station::Get(order->GetDestination())->xy;
case OT_GOTO_WAYPOINT: return ::Waypoint::Get(order->GetDestination())->xy;
default: return INVALID_TILE;
}
}