X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fscores.qh;h=3bc6c55636c65fa4e3875d0bf2b328e0f3a0aa02;hb=36c060287c80e935205582a163ceeac7559fe47f;hp=377a780770300554275d3685e3e6d53e90122bb8;hpb=f41f81f37e3ecf5a2d14f7bc7ffd7bbf09fff32e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/scores.qh b/qcsrc/common/scores.qh index 377a78077..3bc6c5563 100644 --- a/qcsrc/common/scores.qh +++ b/qcsrc/common/scores.qh @@ -4,10 +4,11 @@ #define REGISTER_SP(id) REGISTER(Scores, SP, id, m_id, new_pure(PlayerScoreField)) REGISTRY(Scores, MAX_SCORE); -#define Scores_from(i) _Scores_from(i, NULL) REGISTER_REGISTRY(Scores) REGISTRY_SORT(Scores); REGISTRY_CHECK(Scores); + +REGISTRY_DEFINE_GET(Scores, NULL) STATIC_INIT(Scores_renumber) { FOREACH(Scores, true, it.m_id = i); } /*