summaryrefslogtreecommitdiff
path: root/water_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-02 12:49:18 +0000
committertron <tron@openttd.org>2006-04-02 12:49:18 +0000
commit892a4c587dfd1427fcebf3081520524a2c822ae6 (patch)
tree6165bdad32d288513a9323a661873fa96839184c /water_cmd.c
parente9a5ca70e2b04f6df8f719e8649b4a629ba49475 (diff)
downloadopenttd-892a4c587dfd1427fcebf3081520524a2c822ae6.tar.xz
(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfo
Diffstat (limited to 'water_cmd.c')
-rw-r--r--water_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/water_cmd.c b/water_cmd.c
index c3e7aa7ab..5d9ca0ac2 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -446,9 +446,9 @@ static uint GetSlopeZ_Water(const TileInfo* ti)
return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z;
}
-static uint GetSlopeTileh_Water(const TileInfo *ti)
+static uint GetSlopeTileh_Water(TileIndex tile, uint tileh)
{
- return ti->tileh;
+ return tileh;
}
static void GetAcceptedCargo_Water(TileIndex tile, AcceptedCargo ac)