]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix wrong bot check in a FOREACH_CLIENT loop
authorterencehill <piuntn@gmail.com>
Thu, 4 May 2023 13:28:24 +0000 (15:28 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 4 May 2023 13:28:24 +0000 (15:28 +0200)
qcsrc/lib/warpzone/server.qc

index df1cd9559ac7a06a9d69f1fc92ee6e3dbd358bcf..4a78ea21c772ac5beae1abe6cc390cb05622bb78 100644 (file)
@@ -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) {