Codechange: Use std::tuple for slope functions with two return values
This commit is contained in:
@@ -69,8 +69,7 @@ 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 */
|
||||
|
Reference in New Issue
Block a user