summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-22 08:43:02 +0000
committertron <tron@openttd.org>2007-02-22 08:43:02 +0000
commit103d119c510a83c3b0cca20328ad4d87e8159d6a (patch)
tree2048730a2bf93500bc8d9112bae1371da5ba8b87 /src/rail_gui.cpp
parent0d041a87cc475253176f796c156a3c49032eb415 (diff)
downloadopenttd-103d119c510a83c3b0cca20328ad4d87e8159d6a.tar.xz
(svn r8841) -Fix
Remove {,u}intswap() and replace them by Swap()
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp8
1 files changed, 4 insertions, 4 deletions
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);
}