summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.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
commit053e2ddda5396a29947093d3e9e3b725429c7102 (patch)
tree2048730a2bf93500bc8d9112bae1371da5ba8b87 /src/tunnelbridge_cmd.cpp
parent20336638d572e8f30590f7d1c08c47cbf60f973f (diff)
downloadopenttd-053e2ddda5396a29947093d3e9e3b725429c7102.tar.xz
(svn r8841) -Fix
Remove {,u}intswap() and replace them by Swap()
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index c370f0735..ba40104a8 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -218,10 +218,10 @@ int32 CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p2)
if (x == sx) {
if (y == sy) return_cmd_error(STR_5008_CANNOT_START_AND_END_ON);
direction = AXIS_Y;
- if (y > sy) uintswap(y,sy);
+ if (y > sy) Swap(y, sy);
} else if (y == sy) {
direction = AXIS_X;
- if (x > sx) uintswap(x,sx);
+ if (x > sx) Swap(x, sx);
} else {
return_cmd_error(STR_500A_START_AND_END_MUST_BE_IN);
}