common: fix bitflag_names

This commit is contained in:
Eric Wasylishen 2024-10-31 19:05:23 -06:00
parent 47faf6c0be
commit 14d8b5f6fc
2 changed files with 9 additions and 4 deletions

View File

@ -48,6 +48,9 @@ static std::vector<qvec3b> make_palette(std::initializer_list<uint8_t> bytes)
return result;
}
/**
* Keep up to date with contents_t enum.
*/
static constexpr const char *bitflag_names[] = {
"SOLID",
"SKY",
@ -62,8 +65,8 @@ static constexpr const char *bitflag_names[] = {
"PLAYERCLIP",
"MONSTERCLIP",
"AREAPORTAL",
"ILLUSIONARY_VISBLOCKER",
"DETAIL",
"NO_WATERJUMP",
"PROJECTILECLIP",
"MIRROR_INSIDE",
"MIRROR_INSIDE_SET",
"SUPPRESS_CLIPPING_SAME_TYPE",
@ -77,14 +80,14 @@ static constexpr const char *bitflag_names[] = {
"LADDER",
"MONSTER",
"DEADMONSTER",
"ILLUSIONARY_VISBLOCKER",
"DETAIL",
"Q2_UNUSED_7",
"Q2_UNUSED_8",
"Q2_UNUSED_9",
"Q2_UNUSED_10",
"Q2_UNUSED_11",
"Q2_UNUSED_12",
"Q2_UNUSED_13",
"Q2_UNUSED_14",
"Q2_UNUSED_30",
"Q2_UNUSED_31",
"INVALID_BIT_38",

View File

@ -52,6 +52,8 @@ using contents_int_t = uint64_t;
/**
* Superset of Q1- and Q2- features, plus EWT extensions.
*
* Update bitflag_names if this is changed.
*/
enum contents_t : contents_int_t {
EWT_VISCONTENTS_EMPTY = 0,