From ad7f036c26adcd1d68950b8e1c465e14fdf17fcc Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 7 Aug 2011 17:48:31 +0200 Subject: [PATCH] fix jumppads again --- qcsrc/server/t_jumppads.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/t_jumppads.qc b/qcsrc/server/t_jumppads.qc index e1e92d129..888b94456 100644 --- a/qcsrc/server/t_jumppads.qc +++ b/qcsrc/server/t_jumppads.qc @@ -246,7 +246,7 @@ void trigger_push_touch() .vector dest; void trigger_push_findtarget() { - local entity e; + local entity e, t; local vector org; local float flighttime; @@ -258,13 +258,13 @@ void trigger_push_findtarget() { float n; n = 0; - for(e = world; (e = find(e, targetname, self.target)); ) + for(t = world; (t = find(t, targetname, self.target)); ) { ++n; e = spawn(); setorigin(e, org); setsize(e, PL_MIN, PL_MAX); - e.velocity = trigger_push_calculatevelocity(org, self.enemy, self.height); + e.velocity = trigger_push_calculatevelocity(org, t, self.height); tracetoss(e, e); if(e.movetype == MOVETYPE_NONE) waypoint_spawnforteleporter(self, trace_endpos, vlen(trace_endpos - org) / vlen(e.velocity)); -- 2.39.2