summaryrefslogtreecommitdiff
path: root/clear_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-23 19:35:36 +0000
committertron <tron@openttd.org>2006-04-23 19:35:36 +0000
commitc1dc517dab10acb049f35e80f94508bbcecf3193 (patch)
tree020949ed699a5b1e636d9d4da8e68db3751bf261 /clear_cmd.c
parent8ef2c13c65498dfc39cb80bd1c07589b747fe1e6 (diff)
downloadopenttd-c1dc517dab10acb049f35e80f94508bbcecf3193.tar.xz
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
Diffstat (limited to 'clear_cmd.c')
-rw-r--r--clear_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clear_cmd.c b/clear_cmd.c
index a680f398a..3a8b69f91 100644
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -460,8 +460,8 @@ void DrawClearLandFence(const TileInfo *ti)
byte z = ti->z;
if (ti->tileh & SLOPE_S) {
- z += 8;
- if (ti->tileh == SLOPE_STEEP_S) z += 8;
+ z += TILE_HEIGHT;
+ if (ti->tileh == SLOPE_STEEP_S) z += TILE_HEIGHT;
}
if (GetFenceSW(ti->tile) != 0) {