summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.h
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-12-21 13:54:57 +0000
committerterkhen <terkhen@openttd.org>2010-12-21 13:54:57 +0000
commit759a596e0b390752bf59b8b0c4a757635de89f36 (patch)
treeefe7c67ada7b409d10f6a6c7bfc7477f024bb612 /src/vehicle_gui.h
parent8fc48a79dae5d60a8b1c3db7d663f1188e2aba2c (diff)
downloadopenttd-759a596e0b390752bf59b8b0c4a757635de89f36.tar.xz
(svn r21563) -Codechange: Add function to get the width of a vehicle.
Diffstat (limited to 'src/vehicle_gui.h')
-rw-r--r--src/vehicle_gui.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h
index 4f29b2a64..51646bbd8 100644
--- a/src/vehicle_gui.h
+++ b/src/vehicle_gui.h
@@ -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