X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fent_cs.qc;h=a7aa27961139530a73a9a7feda0d4ae1fe8d54f4;hb=044d6e7bacea730fa93654fd2e82648e699a3796;hp=2675d3201867c3397c4ecdba7db65cc7d3f23553;hpb=8e4957c252f8381e37f2a72e227797bf51e5cc2f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index 2675d3201..a7aa27961 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -6,10 +6,11 @@ #endif REGISTRY(EntCSProps, BITS(16) - 1) -#define EntCSProps_from(i) _EntCSProps_from(i, NULL) REGISTER_REGISTRY(EntCSProps) REGISTRY_SORT(EntCSProps) REGISTRY_CHECK(EntCSProps) + +REGISTRY_DEFINE_GET(EntCSProps, NULL) STATIC_INIT(EntCSProps_renumber) { FOREACH(EntCSProps, true, it.m_id = i); } // these entcs_props ids need to be referenced directly