From: Mario Date: Sun, 27 Mar 2016 11:26:11 +0000 (+1000) Subject: Fix warpzones X-Git-Tag: xonotic-v0.8.2~945^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dd8655e639251a8442b7e4d85db29e6f2a6163e3;p=xonotic%2Fxonotic-data.pk3dir.git Fix warpzones --- diff --git a/qcsrc/lib/warpzone/server.qc b/qcsrc/lib/warpzone/server.qc index 13e5a9599..d9d4b6222 100644 --- a/qcsrc/lib/warpzone/server.qc +++ b/qcsrc/lib/warpzone/server.qc @@ -248,11 +248,11 @@ void WarpZone_Touch () if (!this.target) this.target = save1; if (!this.target3) this.target3 = save2; - save1 = this.enemy.target; this.enemy.target = string_null; - save2 = this.enemy.target2; this.enemy.target2 = string_null; + save1 = this.target; this.target = string_null; + save2 = this.target2; this.target2 = string_null; SUB_UseTargets(this.enemy, other, other); // use other too? - if (!this.enemy.target) this.enemy.target = save1; - if (!this.enemy.target2) this.enemy.target2 = save2; + if (!this.target) this.target = save1; + if (!this.target2) this.target2 = save2; #endif } else