X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapinfo.qh;h=c9d6c5e722449773a850188a4f02d9d4e7276d07;hp=68b5d0b3b888addd754d9e074b21b04dbef4d9c9;hb=9941c9ba8eaf0bb0ecc47a57e095ab5d38fa652b;hpb=36c060287c80e935205582a163ceeac7559fe47f diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index 68b5d0b3b8..c9d6c5e722 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -119,6 +119,7 @@ REGISTRY_SORT(Gametypes); REGISTRY_CHECK(Gametypes) REGISTRY_DEFINE_GET(Gametypes, NULL) +STATIC_INIT(Gametypes_renumber) { FOREACH(Gametypes, true, it.m_id = i); } #define REGISTER_GAMETYPE(NAME, inst) REGISTER(Gametypes, MAPINFO_TYPE, NAME, m_id, inst) #define IS_GAMETYPE(NAME) (MapInfo_LoadedGametype == MAPINFO_TYPE_##NAME)