r4775 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Oct 17 09:56:24 EDT 2008
Author: div0
Date: 2008-10-17 09:56:24 -0400 (Fri, 17 Oct 2008)
New Revision: 4775
Modified:
trunk/data/qcsrc/client/sbar.qc
Log:
fix max fields check
Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc 2008-10-16 16:24:26 UTC (rev 4774)
+++ trunk/data/qcsrc/client/sbar.qc 2008-10-17 13:56:24 UTC (rev 4775)
@@ -412,7 +412,6 @@
else
subpattern2 = ",noteams,";
- argc = min(argc-1, MAX_SBAR_FIELDS-1);
for(i = 0; i < argc; ++i)
{
str = argv(i+1);
@@ -481,6 +480,8 @@
have_secondary = 1;
}
++sbar_num_fields;
+ if(sbar_num_fields >= MAX_SBAR_FIELDS)
+ break;
}
if(scores_flags[ps_primary] & SFL_ALLOW_HIDE)
More information about the nexuiz-commits
mailing list