diff options
author | tron <tron@openttd.org> | 2005-10-19 14:49:46 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-19 14:49:46 +0000 |
commit | 71d293f2a3a469b82804049d8e5325d82681d2f8 (patch) | |
tree | ec3c494c40b7ce63f77525976e380da0b0985543 /town_cmd.c | |
parent | ab049c7bca352a62a9668fdeb6c197c39ad84dd9 (diff) | |
download | openttd-71d293f2a3a469b82804049d8e5325d82681d2f8.tar.xz |
(svn r3066) Constify the parameter of GetSlopeZ_*()
Diffstat (limited to 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/town_cmd.c b/town_cmd.c index ebf2e8719..3db23ece7 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -143,9 +143,9 @@ static void DrawTile_Town(TileInfo *ti) } } -static uint GetSlopeZ_Town(TileInfo *ti) +static uint GetSlopeZ_Town(const TileInfo* ti) { - uint z = GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + ti->z; + uint z = GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z; if (ti->tileh != 0) z = (z & ~7) + 4; return (uint16) z; } |