(svn r27631) -Codechange: Split GetSingleVehicleWidth from GetVehicleWidth.

This commit is contained in:
frosch
2016-08-15 18:34:09 +00:00
parent ddc9205212
commit 8e90072d3b
2 changed files with 24 additions and 17 deletions

View File

@@ -64,7 +64,8 @@ static inline uint GetVehicleHeight(VehicleType type)
return (type == VEH_TRAIN || type == VEH_ROAD) ? 14 : 24;
}
int GetVehicleWidth(Vehicle *v, EngineImageType image_type);
int GetSingleVehicleWidth(const Vehicle *v, EngineImageType image_type);
int GetVehicleWidth(const Vehicle *v, EngineImageType image_type);
/** Dimensions of a cell in the purchase/depot windows. */
struct VehicleCellSize {