mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-22 11:44:17 +01:00
Codechange: Use EnumBitSet for ObjectFlags. (#13441)
This commit is contained in:
@@ -4241,7 +4241,7 @@ static ChangeInfoResult ObjectChangeInfo(uint first, uint last, int prop, ByteRe
|
||||
|
||||
case 0x10: // Flags
|
||||
spec->flags = (ObjectFlags)buf.ReadWord();
|
||||
_loaded_newgrf_features.has_2CC |= (spec->flags & OBJECT_FLAG_2CC_COLOUR) != 0;
|
||||
_loaded_newgrf_features.has_2CC |= spec->flags.Test(ObjectFlag::Uses2CC);
|
||||
break;
|
||||
|
||||
case 0x11: // Animation info
|
||||
|
||||
Reference in New Issue
Block a user