1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-24 04:34:16 +01:00

Codechange: Use EnumBitSet for SettingFlags. (#13429)

This commit is contained in:
Peter Nelson
2025-02-01 15:46:51 +00:00
committed by GitHub
parent 1d25c526b4
commit c4c5028862
27 changed files with 414 additions and 415 deletions

View File

@@ -39,7 +39,7 @@
const SettingDesc *sd = GetSettingFromName(setting);
assert(sd != nullptr);
if ((sd->flags & SF_NO_NETWORK_SYNC) != 0) return false;
if ((sd->flags.Test(SettingFlag::NoNetworkSync))) return false;
value = Clamp<SQInteger>(value, INT32_MIN, INT32_MAX);