diff options
author | Erich Eckner <git@eckner.net> | 2018-11-23 00:32:47 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-07-21 19:01:20 +0200 |
commit | f7219ee7a5af8587ed29afdd98729a0398ffea7c (patch) | |
tree | 3ce18fda76eca0a671383e986c4277fac51f4f0e | |
parent | 7704c449e5099380f6f23977fc2805a483b830d8 (diff) | |
download | openttd-f7219ee7a5af8587ed29afdd98729a0398ffea7c.tar.xz |
src/station_cmd.cpp: busses should go "smoth" over sloped bus stops, too
-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); |