r2275 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Apr 1 08:42:33 EDT 2007


Author: div0
Date: 2007-04-01 08:42:33 -0400 (Sun, 01 Apr 2007)
New Revision: 2275

Modified:
   trunk/data/qcsrc/server/clientcommands.qc
Log:
define burst right... :)


Modified: trunk/data/qcsrc/server/clientcommands.qc
===================================================================
--- trunk/data/qcsrc/server/clientcommands.qc	2007-04-01 12:39:08 UTC (rev 2274)
+++ trunk/data/qcsrc/server/clientcommands.qc	2007-04-01 12:42:33 UTC (rev 2275)
@@ -72,6 +72,8 @@
 			flood_lmax = cvar("g_chat_flood_lmax");
 			flood_field = floodcontrol_chat;
 		}
+		flood_burst = max(0, flood_burst - 1);
+		// to match explanation in default.cfg, a value of 3 must allow three-line bursts and not four!
 		lines = ceil(strlennocol(msgstr) / 50);
 		if(flood_lmax && lines > flood_lmax)
 			flood = 2;




More information about the nexuiz-commits mailing list