From 825d40fddafcb1d53de930f864fe4c12a4374135 Mon Sep 17 00:00:00 2001 From: z411 Date: Mon, 21 Feb 2022 19:35:32 -0300 Subject: [PATCH] Show invalid ranks as N/A --- qcsrc/common/util.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2