From: Mario Date: Wed, 22 Nov 2017 04:35:44 +0000 (+1000) Subject: Fix another case of 'other' X-Git-Tag: xonotic-v0.8.5~2436 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3bbb607a6d726e4c77bee0f63a3326a5b46588c2;p=xonotic%2Fxonotic-data.pk3dir.git Fix another case of 'other' --- diff --git a/qcsrc/common/triggers/trigger/jumppads.qc b/qcsrc/common/triggers/trigger/jumppads.qc index df9650745..822411c6a 100644 --- a/qcsrc/common/triggers/trigger/jumppads.qc +++ b/qcsrc/common/triggers/trigger/jumppads.qc @@ -38,9 +38,9 @@ vector trigger_push_calculatevelocity(vector org, entity tgt, float ht) torg = tgt.origin + (tgt.mins + tgt.maxs) * 0.5; - grav = PHYS_GRAVITY(other); - if(PHYS_ENTGRAVITY(other)) - grav *= PHYS_ENTGRAVITY(other); + grav = PHYS_GRAVITY(tgt); + if(PHYS_ENTGRAVITY(tgt)) + grav *= PHYS_ENTGRAVITY(tgt); zdist = torg.z - org.z; sdist = vlen(torg - org - zdist * '0 0 1');