playerlist.hpp: assert size of rgba_t is same as 4 floats

This assertion is here to ensure in the future we won't have silent incompatibilities between no visual and visual player lists
This commit is contained in:
Unnamed 2019-02-19 11:32:44 +00:00 committed by TotallyNotElite
parent 9899fc55c1
commit 5320496cc7

View File

@ -26,6 +26,7 @@ enum class k_EState
};
#if ENABLE_VISUALS
extern rgba_t k_Colors[];
static_assert(sizeof(rgba_t) == sizeof(float) * 4, "player list is going to be incompatible with no visual version");
#endif
const std::string k_Names[] = { "DEFAULT", "FRIEND", "RAGE", "IPC", "DEVELOPER", "CAT" };
const char *const k_pszNames[] = { "DEFAULT", "FRIEND", "RAGE", "IPC", "DEVELOPER", "CAT" };