diff options
author | rubidium <rubidium@openttd.org> | 2007-09-19 16:36:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-19 16:36:42 +0000 |
commit | 5c9553d48bba3cfb8b65d56e82170d87cd1e08b3 (patch) | |
tree | 43eeb8d8df5dc2673e5adeba591247acb8e3bbe2 /src/viewport.h | |
parent | 92a827800f690c04927c5cbbdd5fa788b9f2cd4c (diff) | |
download | openttd-5c9553d48bba3cfb8b65d56e82170d87cd1e08b3.tar.xz |
(svn r11128) -Fix: a lot of graphical glitches by changing some bounding boxes. It's not perfect yet, but a *very* good step into the right direction. Patch by frosch.
Diffstat (limited to 'src/viewport.h')
-rw-r--r-- | src/viewport.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/viewport.h b/src/viewport.h index 5f511128d..4bd9fec5a 100644 --- a/src/viewport.h +++ b/src/viewport.h @@ -44,6 +44,17 @@ static inline void MaxZoomInOut(int how, Window *w) while (DoZoomInOutWindow(how, w)) {}; } +/** + * Some values for constructing bounding boxes (BB). The Z positions under bridges are: + * z=0..5 Everything that can be built under low bridges. + * z=6 reserved, currently unused. + * z=7 Z separator between bridge/tunnel and the things under/above it. + */ +enum { + BB_HEIGHT_UNDER_BRIDGE = 6, ///< Everything that can be built under low bridges, must not exceed this Z height. + BB_Z_SEPARATOR = 7, ///< Separates the bridge/tunnel from the things under/above it. +}; + void OffsetGroundSprite(int x, int y); void DrawGroundSprite(SpriteID image, SpriteID pal); |