From: Mario Date: Sat, 22 Oct 2016 18:58:24 +0000 (+1000) Subject: Kill off one of the biggest baddest findchain loops X-Git-Tag: xonotic-v0.8.2~473^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=78dc4081f47ae1a2ea8630dcb41bb1abba64bcb4;p=xonotic%2Fxonotic-data.pk3dir.git Kill off one of the biggest baddest findchain loops --- diff --git a/qcsrc/lib/warpzone/server.qc b/qcsrc/lib/warpzone/server.qc index 34ea2610d..ff9ee9076 100644 --- a/qcsrc/lib/warpzone/server.qc +++ b/qcsrc/lib/warpzone/server.qc @@ -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