]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Kill off one of the biggest baddest findchain loops 380/head
authorMario <mario@smbclan.net>
Sat, 22 Oct 2016 18:58:24 +0000 (04:58 +1000)
committerMario <mario@smbclan.net>
Sat, 22 Oct 2016 18:58:24 +0000 (04:58 +1000)
qcsrc/lib/warpzone/server.qc

index 34ea2610dedd7afa60e30ce6bab89f7df643940a..ff9ee90768aa431850a71d0247fc450e6ccab134 100644 (file)
@@ -803,10 +803,19 @@ void WarpZone_StartFrame()
                WarpZone_PostInitialize_Callback();
        }
 
-       FOREACH_ENTITY_FLOAT(pure_data, false,
+       if(warpzone_warpzones_exist)
        {
-               if(warpzone_warpzones_exist)
+               IL_EACH(g_projectiles, true,
+               {
                        WarpZone_StoreProjectileData(it);
+               });
+       }
+               
+
+       FOREACH_CLIENT(true,
+       {
+               if(warpzone_warpzones_exist)
+                       WarpZone_StoreProjectileData(it); // TODO: not actually needed
 
                if(IS_OBSERVER(it) || it.solid == SOLID_NOT)
                if(IS_CLIENT(it)) // we don't care about it being a bot