]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/warpzonelib/server.qc
Merge branch 'mirceakitsune/nex_reticle' of ssh://git.xonotic.org/xonotic-data.pk3dir...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / warpzonelib / server.qc
index d52b9749fd6a6d6b9c059881309145cadf68280a..6388fbaade6c847d3ac8a1200285519aae27509d 100644 (file)
@@ -300,6 +300,7 @@ void WarpZoneCamera_InitStep_FindTarget()
                error("Camera with nonexisting target");
                return;
        }
+       WarpZone_Camera_SetUp(self, self.enemy.origin, self.enemy.angles);
 }
 
 void WarpZone_InitStep_UpdateTransform()
@@ -321,7 +322,7 @@ void WarpZone_InitStep_UpdateTransform()
                tex = getsurfacetexture(self, i_s);
                if not(tex)
                        break; // this is beyond the last one
-               if(tex != "textures/common/warpzone")
+               if(tex == "textures/common/trigger")
                        continue;
                n_t = getsurfacenumtriangles(self, i_s);
                for(i_t = 0; i_t < n_t; ++i_t)
@@ -402,7 +403,7 @@ void WarpZone_InitStep_FindTarget()
        if(self.target != "")
        {
                e2 = world;
-               for(e = world; (e = find(world, targetname, self.target)); )
+               for(e = world; (e = find(e, targetname, self.target)); )
                        if(!e.enemy)
                                if(random() * ++i < 1)
                                        e2 = e;