From f7219ee7a5af8587ed29afdd98729a0398ffea7c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 23 Nov 2018 00:32:47 +0100 Subject: src/station_cmd.cpp: busses should go "smoth" over sloped bus stops, too --- src/station_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 018a2b7fd..ac2a46673 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3201,10 +3201,10 @@ void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, Ro static int GetSlopePixelZ_Station(TileIndex tile, uint x, uint y) { /* this code makes vehicles and trains follow the slope on sloped stations */ - if (IsRailStation(tile)) { + if (IsRailStation(tile) || IsRoadStopTile(tile) && !IsStandardRoadStopTile(tile)) { int z; Slope tileh = GetTilePixelSlope(tile, &z); - Axis axis = GetRailStationAxis(tile); + Axis axis = IsRailStation(tile)?GetRailStationAxis(tile):DiagDirToAxis(GetRoadStopDir(tile)); z += 8*ApplyFoundationToSlope(GetRailFoundation(tileh,AxisToTrackBits(axis)), &tileh); return z + GetPartialPixelZ(x & 0xF, y & 0xF, tileh); -- cgit v1.2.3-70-g09d2