From: FruitieX Date: Sun, 24 Oct 2010 18:05:12 +0000 (+0300) Subject: make race_PlaceName work for places > 100 too (probably useless, but who knows :P) X-Git-Tag: xonotic-v0.1.0preview~202^2~42 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9f6725028d7ee7fa6d2c98daef99d3d3df5526c8;p=xonotic%2Fxonotic-data.pk3dir.git make race_PlaceName work for places > 100 too (probably useless, but who knows :P) --- 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");