]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/warpzone/server.qc
Small optimisation in WarpZone_Touch()
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / warpzone / server.qc
index d444ee6e8ee73e737bef409904a8fc33050ba4af..f216aa9c64bd64dd180f9d91a2de54db8b20625a 100644 (file)
@@ -193,11 +193,11 @@ void WarpZone_Touch(entity this, entity toucher)
        if(toucher.move_movetype == MOVETYPE_NONE || toucher.move_movetype == MOVETYPE_FOLLOW || toucher.tag_entity)
                return;
 
-       EXACTTRIGGER_TOUCH(this, toucher);
-
        if(WarpZone_PlaneDist(this, toucher.origin + toucher.view_ofs) >= 0) // wrong side of the trigger_warpzone (don't teleport yet)
                return;
 
+       EXACTTRIGGER_TOUCH(this, toucher);
+
        float f;
        // number of frames we need to go back:
        //   dist = 16*sqrt(2) qu