(svn r3066) Constify the parameter of GetSlopeZ_*()

This commit is contained in:
tron
2005-10-19 14:49:46 +00:00
parent 5f604ec63a
commit ece9b9b2b6
12 changed files with 31 additions and 26 deletions

View File

@@ -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;
}