mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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:
parent
c5247983e7
commit
295c654740
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Reference in a new issue