From: terencehill Date: Sat, 6 May 2017 22:28:48 +0000 (+0200) Subject: Don't allow clearing ELO score; it fixes ELO value getting set to 0 on player join X-Git-Tag: xonotic-v0.8.5~2795 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4b22916000f124ade94977e91f4fa2cc125d0c7;p=xonotic%2Fxonotic-data.pk3dir.git Don't allow clearing ELO score; it fixes ELO value getting set to 0 on player join --- diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index c0ebfc54a..09f230dd6 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -266,7 +266,8 @@ float PlayerScore_Clear(entity player) if(sk.(scores(it)) != 0) if(scores_label(it) != "") sk.SendFlags |= (2 ** (i % 16)); - sk.(scores(it)) = 0; + if(i != SP_ELO.m_id) + sk.(scores(it)) = 0; }); return 1; @@ -283,7 +284,8 @@ void Score_ClearAll() if(sk.(scores(it)) != 0) if(scores_label(it) != "") sk.SendFlags |= (2 ** (i % 16)); - sk.(scores(it)) = 0; + if(i != SP_ELO.m_id) + sk.(scores(it)) = 0; }); }); for(t = 0; t < 16; ++t)