]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add missing bot check in weapon complain code
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sun, 4 Jun 2023 00:45:24 +0000 (02:45 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 5 Jun 2023 19:12:39 +0000 (21:12 +0200)
qcsrc/server/weapons/selection.qc

index 0368f7f5f9cb9a51c2157793c8724e98713e510e..d2bb32c6fc27f925343f35617941c5b7f50a4e57 100644 (file)
@@ -102,6 +102,7 @@ bool client_hasweapon(entity this, Weapon wpn, .entity weaponentity, float andam
                return true;
        }
        if (complain)
+       if(IS_REAL_CLIENT(this))
        {
                // DRESK - 3/16/07
                // Report Proper Weapon Status / Modified Weapon Ownership Message