(svn r3249) Fix for issue introduced in r3228. The original code was good for raising, then for lowering, now for both.
authorpeter1138
Wed, 30 Nov 2005 07:31:54 +0000
changeset 2705 494b6b5e7a08
parent 2704 bdf6ae0cb27c
child 2706 fc872b9b17a7
(svn r3249) Fix for issue introduced in r3228. The original code was good for raising, then for lowering, now for both.
clear_cmd.c
--- a/clear_cmd.c	Tue Nov 29 22:29:59 2005 +0000
+++ b/clear_cmd.c	Wed Nov 30 07:31:54 2005 +0000
@@ -111,7 +111,10 @@
 
 		// If we have a single diagonal track there, the other side of
 		// tile can be terraformed.
-		if ((_m[tile].m5 & ~0x40) == _railway_modes[mode]) skip_clear = true;
+		if ((_m[tile].m5 & ~0x40) == _railway_modes[mode]) {
+			if (ts->direction == 1) return 0;
+			skip_clear = true;
+		}
 	}
 
 	if (!skip_clear) {