From add1089888d5afd663e0275698278c3232267b40 Mon Sep 17 00:00:00 2001 From: div0 Date: Fri, 29 Aug 2008 16:16:25 +0000 Subject: [PATCH] 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) git-svn-id: svn://svn.icculus.org/nexuiz/trunk@4236 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/g_hook.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/qcsrc/server/g_hook.qc b/data/qcsrc/server/g_hook.qc index 42ba15912..71a960143 100644 --- a/data/qcsrc/server/g_hook.qc +++ b/data/qcsrc/server/g_hook.qc @@ -117,7 +117,7 @@ void GrapplingHookThink() 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) -- 2.39.2