X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fscores.qh;h=3bc6c55636c65fa4e3875d0bf2b328e0f3a0aa02;hb=294e75cd811b19c7f26271fec13c142470266bf6;hp=377a780770300554275d3685e3e6d53e90122bb8;hpb=c3f4bfe02b1f024b183210717a4da3f84ddc0079;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); } /*