r4236 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Aug 29 12:16:25 EDT 2008


Author: div0
Date: 2008-08-29 12:16:25 -0400 (Fri, 29 Aug 2008)
New Revision: 4236

Modified:
   trunk/data/qcsrc/server/g_hook.qc
Log:
fteqcc should implement DWIM:
when it was a before
and I change it to a && b || c
then it should know I mean a && (b || c)! (j/k)


Modified: trunk/data/qcsrc/server/g_hook.qc
===================================================================
--- trunk/data/qcsrc/server/g_hook.qc	2008-08-29 14:06:08 UTC (rev 4235)
+++ trunk/data/qcsrc/server/g_hook.qc	2008-08-29 16:16:25 UTC (rev 4236)
@@ -117,7 +117,7 @@
 
 	tracebox(org, self.mins, self.maxs, self.origin, MOVE_NOMONSTERS, self.owner);
 	// do not hit players with this, as they tend to get in the way just too often
-	if(trace_fraction < 1 && !self.aiment || trace_ent != self.aiment)
+	if(trace_fraction < 1 && (!self.aiment || trace_ent != self.aiment))
 	{
 		// 1. detach the hook
 		if(self.aiment)




More information about the nexuiz-commits mailing list