]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a sprintf bug
authorRudolf Polzer <divverent@alientrap.org>
Sat, 12 Feb 2011 19:48:07 +0000 (20:48 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 12 Feb 2011 19:48:07 +0000 (20:48 +0100)
qcsrc/client/hud.qc

index a383c355c9407cf9d9d57ece639623693c8cfa94..e8309ef4e92a75cfcb633108c2471e9462b6c281 100644 (file)
@@ -395,9 +395,9 @@ string MakeRaceString(float cp, float mytime, float histime, float lapdelta, str
        if(histime < 0)
                return strcat(col, cpname);
        else if(hisname == "")
-               return strcat(col, sprintf(_("%s (%s)")), cpname, timestr);
+               return strcat(col, sprintf(_("%s (%s)"), cpname, timestr));
        else
-               return strcat(col, sprintf(_("%s (%s %s)")), cpname, timestr, strcat(hisname, col, lapstr));
+               return strcat(col, sprintf(_("%s (%s %s)"), cpname, timestr, strcat(hisname, col, lapstr)));
 }
 
 // Check if the given name already exist in race rankings? In that case, where? (otherwise return 0)