r6082 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Mar 8 15:47:39 EDT 2009
Author: div0
Date: 2009-03-08 15:47:39 -0400 (Sun, 08 Mar 2009)
New Revision: 6082
Modified:
trunk/data/qcsrc/server/cl_client.qc
Log:
fix "corona in air" bug when a strength player got gibbed
Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc 2009-03-08 12:59:13 UTC (rev 6081)
+++ trunk/data/qcsrc/server/cl_client.qc 2009-03-08 19:47:39 UTC (rev 6082)
@@ -1615,7 +1615,11 @@
return;
}
- self.effects = self.effects - (self.effects & (EF_RED | EF_BLUE | EF_ADDITIVE | EF_FULLBRIGHT));
+ self.effects &~= (EF_RED | EF_BLUE | EF_ADDITIVE | EF_FULLBRIGHT);
+
+ if(!self.modelindex) // don't apply the flags if the player is gibbed
+ return;
+
if (self.items & IT_STRENGTH)
{
self.effects = self.effects | (EF_BLUE | EF_ADDITIVE | EF_FULLBRIGHT);
More information about the nexuiz-commits
mailing list