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
commit371d8f83862df80d6352cc06aedcf9913db72b2a (patch)
tree3b1e96a1d8dc38e735149e9061249d5b1686df04 /command.c
parent166e1fa992cc22b599e1552b51f6a4a3be95c375 (diff)
downloadopenttd-371d8f83862df80d6352cc06aedcf9913db72b2a.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;