(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:
tron
2006-03-21 20:02:05 +00:00
parent a175840697
commit 820b8ca230
5 changed files with 12 additions and 10 deletions

View File

@@ -2032,7 +2032,7 @@ void StationPickerDrawSprite(int x, int y, RailType railtype, int image)
static uint GetSlopeZ_Station(const TileInfo* ti)
{
return (ti->tileh != 0) ? ti->z + 8 : ti->z;
return ti->z + (ti->tileh == 0 ? 0 : 8);
}
static uint GetSlopeTileh_Station(const TileInfo *ti)