r6088 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Mar 9 09:20:21 EDT 2009


Author: div0
Date: 2009-03-09 09:20:21 -0400 (Mon, 09 Mar 2009)
New Revision: 6088

Modified:
   trunk/data/qcsrc/client/mapvoting.qc
Log:
show "1 vote" instead of "1 votes"


Modified: trunk/data/qcsrc/client/mapvoting.qc
===================================================================
--- trunk/data/qcsrc/client/mapvoting.qc	2009-03-09 12:23:05 UTC (rev 6087)
+++ trunk/data/qcsrc/client/mapvoting.qc	2009-03-09 13:20:21 UTC (rev 6088)
@@ -18,7 +18,12 @@
 	string pre, post;
 	pre = strcat(ftos(id+1), ". ");
 	if(mv_detail)
-		post = strcat(" (", ftos(count), " votes)");
+	{
+		if(count == 1)
+			post = strcat(" (1 vote)");
+		else
+			post = strcat(" (", ftos(count), " votes)");
+	}
 	else
 		post = "";
 	maxwidth -= stringwidth(pre, FALSE) + stringwidth(post, FALSE);




More information about the nexuiz-commits mailing list