From: Rudolf Polzer Date: Sun, 7 Aug 2011 15:48:31 +0000 (+0200) Subject: fix jumppads again X-Git-Tag: xonotic-v0.5.0~148^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ad7f036c26adcd1d68950b8e1c465e14fdf17fcc;p=xonotic%2Fxonotic-data.pk3dir.git fix jumppads again --- 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));