command.c
changeset 467 6f3e282fdce4
parent 395 4c990f33dab7
child 507 8aa8100b0b22
equal deleted inserted replaced
466:01f6221599a7 467:6f3e282fdce4
   411 	// get pointer to command handler
   411 	// get pointer to command handler
   412 	assert((cmd & 0xFF) < lengthof(_command_proc_table));
   412 	assert((cmd & 0xFF) < lengthof(_command_proc_table));
   413 	proc = _command_proc_table[cmd & 0xFF];
   413 	proc = _command_proc_table[cmd & 0xFF];
   414 
   414 
   415 	// this command is a notest command?
   415 	// this command is a notest command?
       
   416 	// CMD_REMOVE_ROAD: This command has special local authority
       
   417 	// restrictions which may cause the test run to fail (the previous
       
   418 	// road fragments still stay there and the town won't let you
       
   419 	// disconnect the road system), but the exec will succeed and this
       
   420 	// fact will trigger an assertion failure. --pasky
   416 	notest =
   421 	notest =
   417 		(cmd & 0xFF) == CMD_CLEAR_AREA ||
   422 		(cmd & 0xFF) == CMD_CLEAR_AREA ||
   418 		(cmd & 0xFF) == CMD_CONVERT_RAIL ||
   423 		(cmd & 0xFF) == CMD_CONVERT_RAIL ||
   419 		(cmd & 0xFF) == CMD_LEVEL_LAND ||
   424 		(cmd & 0xFF) == CMD_LEVEL_LAND ||
   420 		(cmd & 0xFF) == CMD_TRAIN_GOTO_DEPOT;
   425 		(cmd & 0xFF) == CMD_TRAIN_GOTO_DEPOT ||
       
   426 		(cmd & 0xFF) == CMD_REMOVE_ROAD;
   421 
   427 
   422 	if (_networking && (cmd & CMD_ASYNC)) notest = true;
   428 	if (_networking && (cmd & CMD_ASYNC)) notest = true;
   423 
   429 
   424 	_docommand_recursive = 1;
   430 	_docommand_recursive = 1;
   425 
   431