equal
deleted
inserted
replaced
63 case OT_GOTO_WAYPOINT: return (order_flags & ~(AIOF_NON_STOP_FLAGS)) == 0; |
63 case OT_GOTO_WAYPOINT: return (order_flags & ~(AIOF_NON_STOP_FLAGS)) == 0; |
64 default: return false; |
64 default: return false; |
65 } |
65 } |
66 } |
66 } |
67 |
67 |
68 /* static */ int32 AIOrder::GetNumberOfOrders(VehicleID vehicle_id) |
68 /* static */ int32 AIOrder::GetOrderCount(VehicleID vehicle_id) |
69 { |
69 { |
70 return AIVehicle::IsValidVehicle(vehicle_id) ? ::GetVehicle(vehicle_id)->num_orders : -1; |
70 return AIVehicle::IsValidVehicle(vehicle_id) ? ::GetVehicle(vehicle_id)->num_orders : -1; |
71 } |
71 } |
72 |
72 |
73 /* static */ TileIndex AIOrder::GetOrderDestination(VehicleID vehicle_id, uint32 order_id) |
73 /* static */ TileIndex AIOrder::GetOrderDestination(VehicleID vehicle_id, uint32 order_id) |