From 2cb31db94d375e9937760fd74e10831631ca74c2 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 22 Jun 2009 16:10:40 +0200 Subject: [PATCH] Fixed logic bug in class flag filtering. --- src/zr/playerclasses/filtertools.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zr/playerclasses/filtertools.inc b/src/zr/playerclasses/filtertools.inc index 23083bd..cd57dcf 100644 --- a/src/zr/playerclasses/filtertools.inc +++ b/src/zr/playerclasses/filtertools.inc @@ -492,7 +492,7 @@ stock bool:ClassFlagFilterMatch(index, require, deny, cachetype) } // Match deny filter. - if (deny == 0 || ~flags & deny) + if (deny == 0 || !(flags & deny)) { // No denied flags are set. denypassed = true;