]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix warpzones
authorMario <mario@smbclan.net>
Sun, 27 Mar 2016 11:26:11 +0000 (21:26 +1000)
committerMario <mario@smbclan.net>
Sun, 27 Mar 2016 11:26:11 +0000 (21:26 +1000)
qcsrc/lib/warpzone/server.qc

index 13e5a959981911c7915707bc217ae6c9d587383e..d9d4b62223b585d56b2722e93ff20c03054916df 100644 (file)
@@ -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