changeset 3854:62daa16f33a7 draft

(svn r4882) -Fix: Forgot a change in previous commit
author celestar <celestar@openttd.org>
date Tue, 16 May 2006 12:31:15 +0000
parents 00a8c7b97643
children b72a790633fe
files tunnelbridge_cmd.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -228,10 +228,10 @@
 	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);
 	}