(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 a0aed2277d0c
parent 2704 dc9ae68dfd74
child 2706 d31bd0aa0096
(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) {