summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-16 14:50:01 +0000
committertron <tron@openttd.org>2005-01-16 14:50:01 +0000
commit27057ae4b0757e15b38a5327c1229084ad29a38c (patch)
tree187e8c5437b91c17d0f652b2f0d01e30fbd131b4 /smallmap_gui.c
parent07647737d5d52cb548662ffbec4eca3514090b18 (diff)
downloadopenttd-27057ae4b0757e15b38a5327c1229084ad29a38c.tar.xz
(svn r1545) Add TileHeight() which returns the height (not multiplied by 8)
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType()
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c
index 0f8c0ff50..8bf155ca7 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -310,7 +310,7 @@ static inline uint32 GetSmallMapCountoursPixels(uint tile)
}
}
- return (_map_height_bits[_map_type_and_height[tile] & 0xF] & _smallmap_contours_andor[t][1]) | _smallmap_contours_andor[t][0];
+ return (_map_height_bits[TileHeight(tile)] & _smallmap_contours_andor[t][1]) | _smallmap_contours_andor[t][0];
}
static void DrawSmallMapContours(byte *dst, uint xc, uint yc, int pitch, int reps, uint32 mask)