r1720 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jul 4 17:29:30 EDT 2006
Author: div0
Date: 2006-07-04 17:29:29 -0400 (Tue, 04 Jul 2006)
New Revision: 1720
Modified:
trunk/data/qcsrc/server/cl_player.qc
Log:
additional check for lasertarget removal to prevent bug message and hopefully a "can't use weapons" bug
Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc 2006-07-04 18:41:06 UTC (rev 1719)
+++ trunk/data/qcsrc/server/cl_player.qc 2006-07-04 21:29:29 UTC (rev 1720)
@@ -364,7 +364,9 @@
SUB_SetFade (self, time + 12 + random () * 4, 1);
// remove laserdot
- remove(self.weaponentity.lasertarget);
+ if(self.weaponentity)
+ if(self.weaponentity.lasertarget)
+ remove(self.weaponentity.lasertarget);
if(clienttype(self) == CLIENTTYPE_REAL)
{
More information about the nexuiz-commits
mailing list