From 0347fb2ab67e942826523424c35ede66d27339fe Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 23 Apr 2006 13:48:16 +0000 Subject: (svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums --- viewport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewport.c') 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*/) { -- cgit v1.2.3-54-g00ecf