r4169 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 24 09:31:51 EDT 2008


Author: div0
Date: 2008-08-24 09:31:50 -0400 (Sun, 24 Aug 2008)
New Revision: 4169

Modified:
   trunk/data/qcsrc/server/cl_player.qc
Log:
oops, hooking to world should not cancel


Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc	2008-08-24 13:27:17 UTC (rev 4168)
+++ trunk/data/qcsrc/server/cl_player.qc	2008-08-24 13:31:50 UTC (rev 4169)
@@ -356,8 +356,9 @@
 	local float take, save, waves, sdelay;
 
 	if(self.hook)
-		if(self.hook.aiment == attacker)
-			RemoveGrapplingHook(self); // STOP THAT, you parasite!
+		if(self.hook.aiment)
+			if(self.hook.aiment == attacker)
+				RemoveGrapplingHook(self); // STOP THAT, you parasite!
 
 	damage = damage * bound(1.0, self.cvar_cl_handicap, 100.0);
 	if(sv_gentle > 0) {




More information about the nexuiz-commits mailing list