mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
Add chicken bit to allow test/exec mismatch for all commands
This commit is contained in:
parent
ed75592979
commit
338dff09a7
@ -1156,7 +1156,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint64 p3,
|
|||||||
Backup<CompanyID> cur_company(_current_company, FILE_LINE);
|
Backup<CompanyID> cur_company(_current_company, FILE_LINE);
|
||||||
if (exec_as_spectator) cur_company.Change(COMPANY_SPECTATOR);
|
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;
|
GameRandomSeedChecker random_state;
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ enum ChickenBitFlags {
|
|||||||
DCBF_DESYNC_CHECK_POST_COMMAND = 3,
|
DCBF_DESYNC_CHECK_POST_COMMAND = 3,
|
||||||
DCBF_DESYNC_CHECK_NO_GENERAL = 4,
|
DCBF_DESYNC_CHECK_NO_GENERAL = 4,
|
||||||
DCBF_DESYNC_CHECK_PERIODIC_SIGNALS = 5,
|
DCBF_DESYNC_CHECK_PERIODIC_SIGNALS = 5,
|
||||||
|
DCBF_CMD_NO_TEST_ALL = 6,
|
||||||
};
|
};
|
||||||
|
|
||||||
inline bool HasChickenBit(ChickenBitFlags flag)
|
inline bool HasChickenBit(ChickenBitFlags flag)
|
||||||
|
Loading…
Reference in New Issue
Block a user