diff options
author | frosch <frosch@openttd.org> | 2015-02-14 12:53:07 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-02-14 12:53:07 +0000 |
commit | 2e1be6081d10863449ee1c2d0b1895704838bf1d (patch) | |
tree | 2029405a1ccde2c48879005f2d1ae5b278248be6 /src/tile_type.h | |
parent | 1cf09f804be99adbc2a046fd124330f4fc36c731 (diff) | |
download | openttd-2e1be6081d10863449ee1c2d0b1895704838bf1d.tar.xz |
(svn r27148) -Fix: Rounding and unit-conversion inconsistencies in calls to MarkAllViewportsDirty.
Diffstat (limited to 'src/tile_type.h')
-rw-r--r-- | src/tile_type.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tile_type.h b/src/tile_type.h index af0430936..0d720925d 100644 --- a/src/tile_type.h +++ b/src/tile_type.h @@ -12,10 +12,12 @@ #ifndef TILE_TYPE_H #define TILE_TYPE_H -static const uint TILE_SIZE = 16; ///< Tiles are 16x16 "units" in size -static const uint TILE_UNIT_MASK = TILE_SIZE - 1; ///< For masking in/out the inner-tile units. -static const uint TILE_PIXELS = 32; ///< a tile is 32x32 pixels -static const uint TILE_HEIGHT = 8; ///< The standard height-difference between tiles on two levels is 8 (z-diff 8) +static const uint TILE_SIZE = 16; ///< Tile size in world coordinates. +static const uint TILE_UNIT_MASK = TILE_SIZE - 1; ///< For masking in/out the inner-tile world coordinate units. +static const uint TILE_PIXELS = 32; ///< Pixel distance between tile columns/rows in #ZOOM_LVL_BASE. +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 uint MAX_TILE_HEIGHT = 255; ///< Maximum allowed tile height |