diff --git a/src/vehicle.cpp b/src/vehicle.cpp index d1e17ca863..b64687022b 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -556,6 +556,7 @@ Vehicle *VehicleFromPosXY(int x, int y, VehicleType type, void *data, VehicleFro * Helper function for FindVehicleOnPos/HasVehicleOnPos. * @note Do not call this function directly! * @param tile The location on the map + * @param type The vehicle type * @param data Arbitrary data passed to \a proc. * @param proc The proc that determines whether a vehicle will be "found". * @param find_first Whether to return on the first found or iterate over diff --git a/src/vehicle_func.h b/src/vehicle_func.h index 02cd8d2674..a4d2262ec2 100644 --- a/src/vehicle_func.h +++ b/src/vehicle_func.h @@ -55,6 +55,7 @@ uint CountVehiclesInChain(const Vehicle *v); * @note Use this function when you have the intention that all vehicles * should be iterated over. * @param tile The location on the map + * @param type The vehicle type * @param data Arbitrary data passed to \a proc. * @param proc The proc that determines whether a vehicle will be "found". */ @@ -70,6 +71,7 @@ inline void FindVehicleOnPos(TileIndex tile, VehicleType type, void *data, Vehic * @note Use #FindVehicleOnPos when you have the intention that all vehicles * should be iterated over. * @param tile The location on the map + * @param type The vehicle type * @param data Arbitrary data passed to \a proc. * @param proc The \a proc that determines whether a vehicle will be "found". * @return True if proc returned non-nullptr. @@ -91,6 +93,7 @@ inline bool HasVehicleOnPos(TileIndex tile, VehicleType type, void *data, Vehicl * should be iterated over. * @param x The X location on the map * @param y The Y location on the map + * @param type The vehicle type * @param data Arbitrary data passed to proc * @param proc The proc that determines whether a vehicle will be "found". */ @@ -107,6 +110,7 @@ inline void FindVehicleOnPosXY(int x, int y, VehicleType type, void *data, Vehic * should be iterated over. * @param x The X location on the map * @param y The Y location on the map + * @param type The vehicle type * @param data Arbitrary data passed to proc * @param proc The proc that determines whether a vehicle will be "found". * @return True if proc returned non-nullptr.