summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-05-16 12:31:15 +0000
committercelestar <celestar@openttd.org>2006-05-16 12:31:15 +0000
commit0310643a7e98d34cf34e4da1b790607b5315b972 (patch)
tree8e66870fadddbaacb33f1ea6adc9d7a5ca7a2833 /tunnelbridge_cmd.c
parent967d4011f73a11539b47d850396f9bad55bd31be (diff)
downloadopenttd-0310643a7e98d34cf34e4da1b790607b5315b972.tar.xz
(svn r4882) -Fix: Forgot a change in previous commit
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index a76f931ef..cde1d5f0e 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -228,10 +228,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) intswap(y,sy);
+ if (y > sy) uintswap(y,sy);
} else if (y == sy) {
direction = AXIS_X;
- if (x > sx) intswap(x,sx);
+ if (x > sx) uintswap(x,sx);
} else {
return_cmd_error(STR_500A_START_AND_END_MUST_BE_IN);
}