summaryrefslogtreecommitdiff
path: root/src/tile_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2018-03-11 13:23:26 +0000
committerfrosch <frosch@openttd.org>2018-03-11 13:23:26 +0000
commit55588996213dc551ad47625c0111c1bc72c50d23 (patch)
tree12acd2551cb1539758a02d76e731b8365de3b616 /src/tile_type.h
parent07d841d0efb3fc3ed8cca1f3519c3b21bead0bb9 (diff)
downloadopenttd-55588996213dc551ad47625c0111c1bc72c50d23.tar.xz
(svn r27986) -Codechange: Name magic constants in the vehicle position hash functions.
Diffstat (limited to 'src/tile_type.h')
-rw-r--r--src/tile_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tile_type.h b/src/tile_type.h
index 0d720925d..eb5e8234c 100644
--- a/src/tile_type.h
+++ b/src/tile_type.h
@@ -18,6 +18,8 @@ static const uint TILE_PIXELS = 32; ///< Pixel distan
static const uint TILE_HEIGHT = 8; ///< Height of a height level in world coordinate AND in pixels in #ZOOM_LVL_BASE.
static const uint MAX_BUILDING_PIXELS = 200; ///< Maximum height of a building in pixels in #ZOOM_LVL_BASE. (Also applies to "bridge buildings" on the bridge floor.)
+static const int MAX_VEHICLE_PIXEL_X = 70; ///< Maximum width of a vehicle in pixels in #ZOOM_LVL_BASE.
+static const int MAX_VEHICLE_PIXEL_Y = 70; ///< Maximum height of a vehicle in pixels in #ZOOM_LVL_BASE.
static const uint MAX_TILE_HEIGHT = 255; ///< Maximum allowed tile height