--- a/rail_cmd.c Sat Apr 09 06:19:08 2005 +0000
+++ b/rail_cmd.c Sat Apr 09 06:20:03 2005 +0000
@@ -374,7 +374,7 @@
cost += ret;
ret = DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
- if (ret & CMD_ERROR) return ret;
+ if (ret == CMD_ERROR) return ret;
cost += ret;
if (flags & DC_EXEC) {