From 103d119c510a83c3b0cca20328ad4d87e8159d6a Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 22 Feb 2007 08:43:02 +0000 Subject: (svn r8841) -Fix Remove {,u}intswap() and replace them by Swap() --- src/rail_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rail_gui.cpp') diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 36e191202..56ae23ac5 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -638,11 +638,11 @@ static void HandleStationPlacement(TileIndex start, TileIndex end) uint ey = TileY(end); uint w,h; - if (sx > ex) uintswap(sx,ex); - if (sy > ey) uintswap(sy,ey); + if (sx > ex) Swap(sx, ex); + if (sy > ey) Swap(sy, ey); w = ex - sx + 1; h = ey - sy + 1; - if (!_railstation.orientation) uintswap(w,h); + if (!_railstation.orientation) Swap(w, h); DoCommandP(TileXY(sx, sy), _railstation.orientation | (w << 8) | (h << 16), @@ -704,7 +704,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) } else { int x = _railstation.numtracks; int y = _railstation.platlength; - if (_railstation.orientation == 0) intswap(x,y); + if (_railstation.orientation == 0) Swap(x, y); if (!_remove_button_clicked) SetTileSelectSize(x, y); } -- cgit v1.2.3-54-g00ecf