From 6ed22fb3d41724a59b28f64fea406b2eb8cedd40 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 30 Nov 2005 07:31:54 +0000 Subject: [PATCH] (svn r3249) Fix for issue introduced in r3228. The original code was good for raising, then for lowering, now for both. --- clear_cmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clear_cmd.c b/clear_cmd.c index 23168d9458..0f7e365776 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -111,7 +111,10 @@ static int TerraformProc(TerraformerState *ts, TileIndex tile, int mode) // 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) {