summaryrefslogtreecommitdiff
path: root/road_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
commit6dbc9c9ced44d98abb8759593db92910f16292e4 (patch)
tree020949ed699a5b1e636d9d4da8e68db3751bf261 /road_cmd.c
parentaac74778c5020c2f101d9012ab988418a870d7c0 (diff)
downloadopenttd-6dbc9c9ced44d98abb8759593db92910f16292e4.tar.xz
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/road_cmd.c b/road_cmd.c
index b4bf40578..b94d58d3e 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -831,12 +831,12 @@ static uint GetSlopeZ_Road(const TileInfo* ti)
uint f = GetRoadFoundation(tileh, GetRoadBits(ti->tile));
if (f != 0) {
- if (f < 15) return z + 8; // leveled foundation
+ if (f < 15) return z + TILE_HEIGHT; // leveled foundation
tileh = _inclined_tileh[f - 15]; // inclined foundation
}
return z + GetPartialZ(ti->x & 0xF, ti->y & 0xF, tileh);
} else {
- return z + 8;
+ return z + TILE_HEIGHT;
}
}