]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Mapvote: Don't show the "-1 votes" count when a map has been voted out
authorFruitieX <fruitiex@gmail.com>
Sat, 2 Apr 2011 14:32:17 +0000 (17:32 +0300)
committerFruitieX <fruitiex@gmail.com>
Sat, 2 Apr 2011 14:32:17 +0000 (17:32 +0300)
qcsrc/client/mapvoting.qc

index e94d6a68aa786786f9babdf009e71deeb5b64259..a9e7ca4a94beee110d55d8b85d3879fa03132eff 100644 (file)
@@ -26,7 +26,7 @@ string MapVote_FormatMapItem(float id, string map, float count, float maxwidth,
        {
                if(count == 1)
                        post = _(" (1 vote)");
-               else
+               else if(count >= 0)
                        post = sprintf(_(" (%d votes)"), count);
        }
        else