X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fent_cs.qc;h=a7aa27961139530a73a9a7feda0d4ae1fe8d54f4;hp=2675d3201867c3397c4ecdba7db65cc7d3f23553;hb=4eab3f0253a063bdbd4e1ff64c4b2b08077c44c4;hpb=be37ea91fb3bbd1a6fa4f0b70b32d1ea95343ad4 diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index 2675d32018..a7aa279611 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