summaryrefslogtreecommitdiff
path: root/dummy_land.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
commitece9b9b2b6a2feb43c9215c3073e2c09f9f72ae9 (patch)
treeec3c494c40b7ce63f77525976e380da0b0985543 /dummy_land.c
parent5f604ec63a2a603d8c008210ac69760a5f552826 (diff)
downloadopenttd-ece9b9b2b6a2feb43c9215c3073e2c09f9f72ae9.tar.xz
(svn r3066) Constify the parameter of GetSlopeZ_*()
Diffstat (limited to 'dummy_land.c')
-rw-r--r--dummy_land.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dummy_land.c b/dummy_land.c
index 93d9303ac..66be1c42f 100644
--- a/dummy_land.c
+++ b/dummy_land.c
@@ -14,8 +14,9 @@ static void DrawTile_Dummy(TileInfo *ti)
}
-static uint GetSlopeZ_Dummy(TileInfo *ti) {
- return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + ti->z;
+static uint GetSlopeZ_Dummy(const TileInfo* ti)
+{
+ return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z;
}
static uint GetSlopeTileh_Dummy(const TileInfo *ti) {