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:
@@ -61,8 +61,8 @@ void CcPlaySound_CONSTRUCTION_WATER(const CommandCost &result, TileIndex tile, u
|
||||
*/
|
||||
static TileIndex GetOtherAqueductEnd(TileIndex tile_from, TileIndex *tile_to = nullptr)
|
||||
{
|
||||
int z;
|
||||
DiagDirection dir = GetInclinedSlopeDirection(GetTileSlope(tile_from, &z));
|
||||
auto [slope, z] = GetTileSlopeZ(tile_from);
|
||||
DiagDirection dir = GetInclinedSlopeDirection(slope);
|
||||
|
||||
/* If the direction isn't right, just return the next tile so the command
|
||||
* complains about the wrong slope instead of the ends not matching up.
|
||||
|
Reference in New Issue
Block a user