summaryrefslogtreecommitdiff
path: root/src/vehicle_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-03-05 21:52:45 +0000
committerrubidium <rubidium@openttd.org>2011-03-05 21:52:45 +0000
commite34c42de32a3a7dca800a250747ec41d485f42a3 (patch)
treed94487a13a4681c0575c894277f8ed45baf22b67 /src/vehicle_type.h
parent2aa14cc54bc7ab05a84d6f50ee772c6f40fd6099 (diff)
downloadopenttd-e34c42de32a3a7dca800a250747ec41d485f42a3.tar.xz
(svn r22205) -Codechange: replace magic number with constant
Diffstat (limited to 'src/vehicle_type.h')
-rw-r--r--src/vehicle_type.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vehicle_type.h b/src/vehicle_type.h
index 4b4150a63..32c79421d 100644
--- a/src/vehicle_type.h
+++ b/src/vehicle_type.h
@@ -67,6 +67,9 @@ enum DepotCommand {
static const uint MAX_LENGTH_VEHICLE_NAME_CHARS = 32; ///< The maximum length of a vehicle name in characters including '\0'
static const uint MAX_LENGTH_VEHICLE_NAME_PIXELS = 150; ///< The maximum length of a vehicle name in pixels
+/** The length of a vehicle in tile units. */
+static const uint VEHICLE_LENGTH = 8;
+
/** Vehicle acceleration models. */
enum AccelerationModel {
AM_ORIGINAL,