From: FruitieX Date: Sat, 2 Apr 2011 14:32:17 +0000 (+0300) Subject: Mapvote: Don't show the "-1 votes" count when a map has been voted out X-Git-Tag: xonotic-v0.5.0~307^2~14^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2c626f40436d5216f3611ddfdca0d0470b3b4a97;p=xonotic%2Fxonotic-data.pk3dir.git Mapvote: Don't show the "-1 votes" count when a map has been voted out --- diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index e94d6a68a..a9e7ca4a9 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -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