summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-04-14 22:07:39 +0000
committerDarkvater <darkvater@openttd.org>2005-04-14 22:07:39 +0000
commit2e58ce2fd92102f608104ab5de687ec52a6d95d4 (patch)
tree3b1e96a1d8dc38e735149e9061249d5b1686df04 /command.c
parentd5bcf62e5c44773ba779c4229f607d6978e7d61e (diff)
downloadopenttd-2e58ce2fd92102f608104ab5de687ec52a6d95d4.tar.xz
(svn r2200) - Fix [ 1179892 ] click & drag removal of road assertion fail. Add CMD_REMOVE_LONG_ROAD to the 'notest' section as it might have difficulties with town ratings, etc. Read the comment for more info (mgasterix)
Diffstat (limited to 'command.c')
-rw-r--r--command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/command.c b/command.c
index 1fd746a3f..8506d38be 100644
--- a/command.c
+++ b/command.c
@@ -435,7 +435,8 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback,
(cmd & 0xFF) == CMD_CLEAR_AREA ||
(cmd & 0xFF) == CMD_CONVERT_RAIL ||
(cmd & 0xFF) == CMD_LEVEL_LAND ||
- (cmd & 0xFF) == CMD_REMOVE_ROAD;
+ (cmd & 0xFF) == CMD_REMOVE_LONG_ROAD ||
+ (cmd & 0xFF) == CMD_REMOVE_LONG_ROAD;
_docommand_recursive = 1;