]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix another case of 'other'
authorMario <mario@smbclan.net>
Wed, 22 Nov 2017 04:35:44 +0000 (14:35 +1000)
committerMario <mario@smbclan.net>
Wed, 22 Nov 2017 04:35:44 +0000 (14:35 +1000)
qcsrc/common/triggers/trigger/jumppads.qc

index df965074587315eebbc4781704aba2f7386410f9..822411c6a23a93d2b58093f3e28c1616564be7b1 100644 (file)
@@ -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');