X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Flib%2Fwarpzone%2Fserver.qc;h=f1bd0e524e5bbd3c6cebaa2784c0c226579fa765;hp=0b83f05bfa7d7436fc2664d04a39c76a2ee56659;hb=87cbf00c7734cf2910502c217b5c5157511ba5ea;hpb=83aad9e1a69d8e924df17cdbad05b015c6c6f0fc diff --git a/qcsrc/lib/warpzone/server.qc b/qcsrc/lib/warpzone/server.qc index 0b83f05bf..f1bd0e524 100644 --- a/qcsrc/lib/warpzone/server.qc +++ b/qcsrc/lib/warpzone/server.qc @@ -803,7 +803,7 @@ void WarpZone_StartFrame() WarpZone_PostInitialize_Callback(); } - FOREACH_ENTITY(!is_pure(it), + FOREACH_ENTITY_FLOAT(pure_data, false, { if(warpzone_warpzones_exist) WarpZone_StoreProjectileData(it); @@ -835,9 +835,10 @@ void WarpZone_StartFrame() .float warpzone_reconnecting; bool visible_to_some_client(entity ent) { - FOREACH_ENTITY(!IS_NOT_A_CLIENT(it), LAMBDA( - if (IS_PLAYER(it) && IS_REAL_CLIENT(it) && checkpvs(it.origin + it.view_ofs, ent)) return true; - )); + FOREACH_CLIENT(IS_PLAYER(it) && IS_REAL_CLIENT(it) && checkpvs(it.origin + it.view_ofs, ent), + { + return true; + }); return false; } void trigger_warpzone_reconnect_use(entity this, entity actor, entity trigger)