From 820b8ca230b5b0a32e75b8b3f636921f3293363f Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 21 Mar 2006 20:02:05 +0000 Subject: (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. --- station_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index 567a418ff..0e5aec5ef 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -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) -- cgit v1.2.3-54-g00ecf