Merge branch 'master' into jgrpp
# Conflicts: # src/landscape.cpp # src/landscape.h # src/misc_gui.cpp # src/newgrf_commons.cpp # src/order_cmd.cpp # src/pathfinder/yapf/yapf_base.hpp # src/station_cmd.cpp # src/tunnelbridge_cmd.cpp # src/vehicle.cpp # src/water_cmd.cpp # src/window.cpp
This commit is contained in:
@@ -72,12 +72,11 @@ TileIndex GetOtherBridgeEnd(TileIndex tile)
|
||||
*/
|
||||
int GetBridgeHeight(TileIndex t)
|
||||
{
|
||||
int h;
|
||||
Slope tileh = GetTileSlope(t, &h);
|
||||
auto [tileh, h] = GetTileSlopeZ(t);
|
||||
Foundation f = GetBridgeFoundation(tileh, DiagDirToAxis(GetTunnelBridgeDirection(t)));
|
||||
|
||||
/* one height level extra for the ramp */
|
||||
return h + 1 + ApplyFoundationToSlope(f, &tileh);
|
||||
return h + 1 + ApplyFoundationToSlope(f, tileh);
|
||||
}
|
||||
|
||||
std::unordered_map<TileIndex, LongBridgeSignalStorage> _long_bridge_signal_sim_map;
|
||||
|
||||
Reference in New Issue
Block a user