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() && |