diff options
author | tron <tron@openttd.org> | 2006-04-23 13:48:16 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-23 13:48:16 +0000 |
commit | 0347fb2ab67e942826523424c35ede66d27339fe (patch) | |
tree | 3f0769bd955cefba7ab80063e64546c1874e0a62 /viewport.c | |
parent | b5ce99c52d1ce36f56431652f7fcc67eb9d5bf6d (diff) | |
download | openttd-0347fb2ab67e942826523424c35ede66d27339fe.tar.xz |
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
Diffstat (limited to 'viewport.c')
-rw-r--r-- | viewport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/viewport.c b/viewport.c index d47099902..cc3863cde 100644 --- a/viewport.c +++ b/viewport.c @@ -610,9 +610,9 @@ static void DrawTileSelection(const TileInfo *ti) } else if (_thd.drawstyle & HT_POINT) { // Figure out the Z coordinate for the single dot. byte z = ti->z; - if (ti->tileh & 8) { + if (ti->tileh & SLOPE_N) { z += 8; - if (!(ti->tileh & 2) && (IsSteepTileh(ti->tileh))) z += 8; + if (ti->tileh == SLOPE_STEEP_N) z += 8; } DrawGroundSpriteAt(_cur_dpi->zoom != 2 ? SPR_DOT : SPR_DOT_SMALL, ti->x, ti->y, z); } else if (_thd.drawstyle & HT_RAIL /*&& _thd.place_mode == VHM_RAIL*/) { |