From: z411 Date: Mon, 21 Feb 2022 22:35:32 +0000 (-0300) Subject: Show invalid ranks as N/A X-Git-Tag: xonotic-v0.8.5~189^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=825d40fddafcb1d53de930f864fe4c12a4374135;p=xonotic%2Fxonotic-data.pk3dir.git Show invalid ranks as N/A --- diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index 434c12098..469ab50d8 100644 --- a/qcsrc/common/util.qc +++ b/qcsrc/common/util.qc @@ -318,7 +318,7 @@ string ScoreString(int pFlags, float pValue) if((pValue == 0) && (pFlags & (SFL_HIDE_ZERO | SFL_RANK | SFL_TIME))) valstr = ""; else if(pFlags & SFL_RANK) - valstr = count_ordinal(pValue); + valstr = (pValue < 256 ? count_ordinal(pValue) : _("N/A")); else if(pFlags & SFL_TIME) valstr = TIME_ENCODED_TOSTRING(pValue); else