]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix prediction of jumppads without targets
authorMario <mario@smbclan.net>
Sat, 11 Jun 2016 06:57:58 +0000 (16:57 +1000)
committerMario <mario@smbclan.net>
Sat, 11 Jun 2016 06:57:58 +0000 (16:57 +1000)
qcsrc/common/triggers/trigger/jumppads.qc

index 8b84a651db874342b0eb56dfecb7cc232d5b2615..9691cdad80ac1a1d89c525adbb7e526052886f66 100644 (file)
@@ -148,7 +148,7 @@ void trigger_push_touch(entity this)
                other.velocity = trigger_push_calculatevelocity(other.origin, this.enemy, this.height);
                other.move_velocity = other.velocity;
        }
-       else if(this.target)
+       else if(this.target && this.target != "")
        {
                entity e;
                RandomSelection_Init();