1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-10 06:52:05 +01:00

Codefix 6f52a977a8: GRFConfigFlag was given enum class naming without being enum class. (#14884)

This commit is contained in:
Peter Nelson
2025-12-08 08:59:02 +00:00
committed by GitHub
parent 2c8a15cf36
commit 0d59ecf7de

View File

@@ -17,15 +17,15 @@
#include "3rdparty/md5/md5.h" #include "3rdparty/md5/md5.h"
/** GRF config bit flags */ /** GRF config bit flags */
enum GRFConfigFlag : uint8_t { enum class GRFConfigFlag : uint8_t {
System, ///< GRF file is an openttd-internal system grf System, ///< GRF file is an openttd-internal system grf
Unsafe, ///< GRF file is unsafe for static usage Unsafe, ///< GRF file is unsafe for static usage
Static, ///< GRF file is used statically (can be used in any MP game) Static, ///< GRF file is used statically (can be used in any MP game)
Compatible, ///< GRF file does not exactly match the requested GRF (different MD5SUM), but grfid matches) Compatible, ///< GRF file does not exactly match the requested GRF (different MD5SUM), but grfid matches)
Copy, ///< The data is copied from a grf in _all_grfs Copy, ///< The data is copied from a grf in _all_grfs
InitOnly, ///< GRF file is processed up to GLS_INIT InitOnly, ///< GRF file is processed up to GLS_INIT
Reserved, ///< GRF file passed GLS_RESERVE stage Reserved, ///< GRF file passed GLS_RESERVE stage
Invalid, ///< GRF is unusable with this version of OpenTTD Invalid, ///< GRF is unusable with this version of OpenTTD
}; };
using GRFConfigFlags = EnumBitSet<GRFConfigFlag, uint8_t>; using GRFConfigFlags = EnumBitSet<GRFConfigFlag, uint8_t>;