diff --git a/src/vehicle_func.h b/src/vehicle_func.h --- a/src/vehicle_func.h +++ b/src/vehicle_func.h @@ -28,10 +28,11 @@ const Vehicle *GetLastVehicleInChain(con uint CountVehiclesInChain(const Vehicle *v); bool IsEngineCountable(const Vehicle *v); void DeleteVehicleChain(Vehicle *v); -Vehicle *VehicleFromPos(TileIndex tile, void *data, VehicleFromPosProc *proc); -Vehicle *VehicleFromPosXY(int x, int y, void *data, VehicleFromPosProc *proc); +void FindVehicleOnPos(TileIndex tile, void *data, VehicleFromPosProc *proc); +void FindVehicleOnPosXY(int x, int y, void *data, VehicleFromPosProc *proc); +bool HasVehicleOnPos(TileIndex tile, void *data, VehicleFromPosProc *proc); +bool HasVehicleOnPosXY(int x, int y, void *data, VehicleFromPosProc *proc); void CallVehicleTicks(); -Vehicle *FindVehicleOnTileZ(TileIndex tile, byte z); uint8 CalcPercentVehicleFilled(const Vehicle *v, StringID *color); void InitializeTrains(); @@ -50,8 +51,7 @@ SpriteID GetRotorImage(const Vehicle *v) uint32 VehicleEnterTile(Vehicle *v, TileIndex tile, int x, int y); StringID VehicleInTheWayErrMsg(const Vehicle* v); -Vehicle *FindVehicleBetween(TileIndex from, TileIndex to, byte z, bool without_crashed = false); -Vehicle *GetVehicleTunnelBridge(TileIndex tile, TileIndex endtile); +bool HasVehicleOnTunnelBridge(TileIndex tile, TileIndex endtile); void DecreaseVehicleValue(Vehicle *v); void CheckVehicleBreakdown(Vehicle *v);