(svn r3249) Fix for issue introduced in r3228. The original code was good for raising, then for lowering, now for both.

This commit is contained in:
peter1138 2005-11-30 07:31:54 +00:00
parent fde99748c0
commit 6ed22fb3d4
1 changed files with 4 additions and 1 deletions

View File

@ -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) {