src/command.cpp
changeset 6546 4c6d90bde803
parent 6491 00dc414c909d
child 6630 265be601dc89
equal deleted inserted replaced
6545:c2813603c9d8 6546:4c6d90bde803
   454 	 *  it will fail. so res and res2 are different
   454 	 *  it will fail. so res and res2 are different
   455 	 * CMD_REMOVE_ROAD: This command has special local authority
   455 	 * CMD_REMOVE_ROAD: This command has special local authority
   456 	 * restrictions which may cause the test run to fail (the previous
   456 	 * restrictions which may cause the test run to fail (the previous
   457 	 * road fragments still stay there and the town won't let you
   457 	 * road fragments still stay there and the town won't let you
   458 	 * disconnect the road system), but the exec will succeed and this
   458 	 * disconnect the road system), but the exec will succeed and this
   459 	 * fact will trigger an assertion failure. --pasky */
   459 	 * fact will trigger an assertion failure. --pasky
       
   460 	 * CMD_CLONE_VEHICLE: Both building new vehicles and refitting them can be
       
   461 	 * influenced by newgrf callbacks, which makes it impossible to accurately
       
   462 	 * estimate the cost of cloning a vehicle. */
   460 	notest =
   463 	notest =
   461 		(cmd & 0xFF) == CMD_CLEAR_AREA ||
   464 		(cmd & 0xFF) == CMD_CLEAR_AREA ||
   462 		(cmd & 0xFF) == CMD_CONVERT_RAIL ||
   465 		(cmd & 0xFF) == CMD_CONVERT_RAIL ||
   463 		(cmd & 0xFF) == CMD_LEVEL_LAND ||
   466 		(cmd & 0xFF) == CMD_LEVEL_LAND ||
   464 		(cmd & 0xFF) == CMD_REMOVE_ROAD ||
   467 		(cmd & 0xFF) == CMD_REMOVE_ROAD ||
   465 		(cmd & 0xFF) == CMD_REMOVE_LONG_ROAD;
   468 		(cmd & 0xFF) == CMD_REMOVE_LONG_ROAD ||
       
   469 		(cmd & 0xFF) == CMD_CLONE_VEHICLE;
   466 
   470 
   467 	_docommand_recursive = 1;
   471 	_docommand_recursive = 1;
   468 
   472 
   469 	/* cost estimation only? */
   473 	/* cost estimation only? */
   470 	if (!IsGeneratingWorld() &&
   474 	if (!IsGeneratingWorld() &&