Add chicken bit to allow test/exec mismatch for all commands

This commit is contained in:
Jonathan G Rennison
2023-09-22 17:00:33 +01:00
parent ed75592979
commit 338dff09a7
2 changed files with 2 additions and 1 deletions

View File

@@ -1156,7 +1156,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint64 p3,
Backup<CompanyID> cur_company(_current_company, FILE_LINE);
if (exec_as_spectator) cur_company.Change(COMPANY_SPECTATOR);
bool test_and_exec_can_differ = (cmd_flags & CMD_NO_TEST) != 0;
bool test_and_exec_can_differ = ((cmd_flags & CMD_NO_TEST) != 0) || HasChickenBit(DCBF_CMD_NO_TEST_ALL);
GameRandomSeedChecker random_state;