diff options
-rw-r--r-- | src/station_cmd.cpp | 4 |
1 files 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); |