Fix TEST_SYNC_KEY macro to always return 1 or 0.

git-svn-id: https://svn.eduke32.com/eduke32@5870 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-09-16 21:55:45 +00:00
parent c5247983e7
commit 295c654740

View file

@ -48,7 +48,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define BIT(shift) (1u<<(shift)) #define BIT(shift) (1u<<(shift))
#define TEST_SYNC_KEY(bits, sync_num) TEST(bits, BIT(sync_num)) #define TEST_SYNC_KEY(bits, sync_num) (!!TEST((bits), BIT(sync_num)))
#define AFLAMABLE(X) (X==BOX||X==TREE1||X==TREE2||X==TIRE||X==CONE) #define AFLAMABLE(X) (X==BOX||X==TREE1||X==TREE2||X==TIRE||X==CONE)
#define rnd(X) ((krand()>>8)>=(255-(X))) #define rnd(X) ((krand()>>8)>=(255-(X)))