From: terencehill Date: Thu, 4 May 2023 13:28:24 +0000 (+0200) Subject: Fix wrong bot check in a FOREACH_CLIENT loop X-Git-Tag: xonotic-v0.8.6~121 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b0df200166a8044ed31cd3fac282741c09aa11a5;p=xonotic%2Fxonotic-data.pk3dir.git Fix wrong bot check in a FOREACH_CLIENT loop --- diff --git a/qcsrc/lib/warpzone/server.qc b/qcsrc/lib/warpzone/server.qc index df1cd9559..4a78ea21c 100644 --- a/qcsrc/lib/warpzone/server.qc +++ b/qcsrc/lib/warpzone/server.qc @@ -809,8 +809,7 @@ void WarpZone_StartFrame() 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 + if((IS_OBSERVER(it) || it.solid == SOLID_NOT) && !IS_BOT_CLIENT(it)) { // warpzones if (warpzone_warpzones_exist) {