From 9f6725028d7ee7fa6d2c98daef99d3d3df5526c8 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Sun, 24 Oct 2010 21:05:12 +0300 Subject: [PATCH] make race_PlaceName work for places > 100 too (probably useless, but who knows :P) --- qcsrc/server/miscfunctions.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index e5eb7e41f..154e33f17 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -2115,7 +2115,7 @@ string race_GetName(string map, float pos) } string race_PlaceName(float pos) { - if(pos < 10 || pos > 20) + if(floor((pos % 100)/10) * 10 != 10) // examples: 12th, 111th, 213th will not execute this block { if(pos % 10 == 1) return strcat(ftos(pos), "st"); -- 2.39.2