summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-19 14:49:46 +0000
committertron <tron@openttd.org>2005-10-19 14:49:46 +0000
commit71d293f2a3a469b82804049d8e5325d82681d2f8 (patch)
treeec3c494c40b7ce63f77525976e380da0b0985543 /industry_cmd.c
parentab049c7bca352a62a9668fdeb6c197c39ad84dd9 (diff)
downloadopenttd-71d293f2a3a469b82804049d8e5325d82681d2f8.tar.xz
(svn r3066) Constify the parameter of GetSlopeZ_*()
Diffstat (limited to 'industry_cmd.c')
-rw-r--r--industry_cmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 0a228343a..385c10ace 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -398,8 +398,9 @@ static void DrawTile_Industry(TileInfo *ti)
}
-static uint GetSlopeZ_Industry(TileInfo *ti) {
- return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + ti->z;
+static uint GetSlopeZ_Industry(const TileInfo* ti)
+{
+ return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z;
}
static uint GetSlopeTileh_Industry(const TileInfo *ti) {