(svn r21563) -Codechange: Add function to get the width of a vehicle.

This commit is contained in:
terkhen
2010-12-21 13:54:57 +00:00
parent 0cbf97bc0e
commit df2a2615a4
2 changed files with 36 additions and 0 deletions

View File

@@ -73,6 +73,8 @@ static inline uint GetVehicleHeight(VehicleType type)
return (type == VEH_TRAIN || type == VEH_ROAD) ? 14 : 24;
}
int GetVehicleWidth(Vehicle *v);
/**
* Get WindowClass for vehicle list of given vehicle type
* @param vt vehicle type to check