Codechange: Use std::swap() instead of Swap() (#13883)

This commit is contained in:
Peter Nelson
2025-03-24 23:47:34 +00:00
committed by GitHub
parent 8a53ccf8f1
commit 79ef4e98fe
17 changed files with 37 additions and 50 deletions

View File

@@ -418,7 +418,7 @@ TileIndex GetNearbyTile(uint8_t parameter, TileIndex tile, bool signed_offsets,
/* Swap width and height depending on axis for railway stations */
if (axis == INVALID_AXIS && HasStationTileRail(tile)) axis = GetRailStationAxis(tile);
if (axis == AXIS_Y) Swap(x, y);
if (axis == AXIS_Y) std::swap(x, y);
/* Make sure we never roam outside of the map, better wrap in that case */
return Map::WrapToMap(tile + TileDiffXY(x, y));