# HG changeset patch # User pasky # Date 1100917531 0 # Node ID 6f3e282fdce4ad07fafbcfc111d0a54272155e10 # Parent 01f6221599a7abcae42484377285e6e0723ccb18 (svn r697) Fix the town road removal crash _still_ present there. diff -r 01f6221599a7 -r 6f3e282fdce4 command.c --- a/command.c Sat Nov 20 01:49:42 2004 +0000 +++ b/command.c Sat Nov 20 02:25:31 2004 +0000 @@ -413,11 +413,17 @@ proc = _command_proc_table[cmd & 0xFF]; // this command is a notest command? + // CMD_REMOVE_ROAD: This command has special local authority + // restrictions which may cause the test run to fail (the previous + // road fragments still stay there and the town won't let you + // disconnect the road system), but the exec will succeed and this + // fact will trigger an assertion failure. --pasky notest = (cmd & 0xFF) == CMD_CLEAR_AREA || (cmd & 0xFF) == CMD_CONVERT_RAIL || (cmd & 0xFF) == CMD_LEVEL_LAND || - (cmd & 0xFF) == CMD_TRAIN_GOTO_DEPOT; + (cmd & 0xFF) == CMD_TRAIN_GOTO_DEPOT || + (cmd & 0xFF) == CMD_REMOVE_ROAD; if (_networking && (cmd & CMD_ASYNC)) notest = true;