]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
make race_PlaceName work for places > 100 too (probably useless, but who knows :P)
authorFruitieX <rasse@rasse-laptop.(none)>
Sun, 24 Oct 2010 18:05:12 +0000 (21:05 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Sun, 24 Oct 2010 18:05:12 +0000 (21:05 +0300)
qcsrc/server/miscfunctions.qc

index e5eb7e41f622efbacd00ce19debdfb730f7c3344..154e33f173b839faf0ba9a3ada909789a818c78b 100644 (file)
@@ -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");