(svn r3996) -Fix: Slope and height information returned for some tile types is wrong
This leads to graphical glitches when drawing foundations. This doesn't fix all problems, but at least some of them.
This commit is contained in:
@@ -144,14 +144,12 @@ static void DrawTile_Town(TileInfo *ti)
|
||||
|
||||
static uint GetSlopeZ_Town(const TileInfo* ti)
|
||||
{
|
||||
uint z = GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z;
|
||||
if (ti->tileh != 0) z = (z & ~7) + 4;
|
||||
return (uint16) z;
|
||||
return ti->z + (ti->tileh == 0 ? 0 : 8);
|
||||
}
|
||||
|
||||
static uint GetSlopeTileh_Town(const TileInfo *ti)
|
||||
{
|
||||
return ti->tileh;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void AnimateTile_Town(TileIndex tile)
|
||||
|
||||
Reference in New Issue
Block a user