r4496 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Sep 26 05:27:01 EDT 2008


Author: div0
Date: 2008-09-26 05:27:00 -0400 (Fri, 26 Sep 2008)
New Revision: 4496

Modified:
   trunk/data/qcsrc/server/clientcommands.qc
   trunk/data/qcsrc/server/vote.qc
Log:
fix wrong vote message


Modified: trunk/data/qcsrc/server/clientcommands.qc
===================================================================
--- trunk/data/qcsrc/server/clientcommands.qc	2008-09-25 11:34:38 UTC (rev 4495)
+++ trunk/data/qcsrc/server/clientcommands.qc	2008-09-26 09:27:00 UTC (rev 4496)
@@ -124,6 +124,7 @@
 	}
 	else
 	{
+		// TODO invent a cvar name for allowing global chat by spectators during warmup anyway
 		if(cvar("g_chat_nospectators") && source.classname != "player") {
 			FOR_EACH_REALCLIENT(head) if(head.classname != "player") {
 				sprint(head, msgstr);

Modified: trunk/data/qcsrc/server/vote.qc
===================================================================
--- trunk/data/qcsrc/server/vote.qc	2008-09-25 11:34:38 UTC (rev 4495)
+++ trunk/data/qcsrc/server/vote.qc	2008-09-26 09:27:00 UTC (rev 4496)
@@ -77,7 +77,7 @@
 		} else if(argv(1) == "call") {
 			if(!e || cvar("sv_vote_call")) {
 				if(cvar("sv_vote_nospectators") && e.classname != "player") {
-					print_to(e, "^1Error: Only players can call a vote during the match-stage.");
+					print_to(e, "^1Error: Only players can call a vote."); // TODO invent a cvar name for allowing votes by spectators during warmup anyway
 				}
 				else if(timeoutStatus) { //don't allow a vote call during a timeout
 					print_to(e, "^1Error: You can not call a vote while a timeout is active.");




More information about the nexuiz-commits mailing list