]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/warpzonelib/server.qc
working on/off switch for panels via a hud dialog
[xonotic/xonotic-data.pk3dir.git] / qcsrc / warpzonelib / server.qc
index d52b9749fd6a6d6b9c059881309145cadf68280a..f2b3581887536234d6614690906e444dd27f2bd9 100644 (file)
@@ -321,7 +321,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 +402,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;