]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Show invalid ranks as N/A
authorz411 <z411@omaera.org>
Mon, 21 Feb 2022 22:35:32 +0000 (19:35 -0300)
committerz411 <z411@omaera.org>
Mon, 21 Feb 2022 22:35:32 +0000 (19:35 -0300)
qcsrc/common/util.qc

index 434c12098b091cf9e38adbf0aa3654778df613ac..469ab50d8c809bc4d52d6d4d27e3cc70693b7722 100644 (file)
@@ -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