2
0
mirror of https://github.com/rehlds/reapi.git synced 2025-03-13 05:50:16 +03:00

Chapter Two: Fix HadRoundExpired

This commit is contained in:
s1lent 2017-10-23 00:25:47 +07:00
parent a046d2fec9
commit 3152021842
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -4,9 +4,9 @@
#define _reapi_gamedll_const_included #define _reapi_gamedll_const_included
// Returns 1 if round ended by expired time // Returns true if round has ended by expired time
// @note: Use this for hookchain RG_RoundEnd with the parameter ScenarioEventEndRound:event // @note: Use this for hookchain RG_RoundEnd with the parameter ScenarioEventEndRound:event
#define HadRoundExpired(event) (1<<_:event) & ((1<<_:ROUND_TARGET_SAVED) | (1<<_:ROUND_HOSTAGE_NOT_RESCUED) | (1<<_:ROUND_TERRORISTS_NOT_ESCAPED) | (1<<_:ROUND_VIP_NOT_ESCAPED) | (1<<_:ROUND_GAME_OVER)) #define IsRoundExpireEvent(%0) (((1<<_:(%0) + ScenarioEventEndRound:0)) & ((1<<_:ROUND_TARGET_SAVED) | (1<<_:ROUND_HOSTAGE_NOT_RESCUED) | (1<<_:ROUND_TERRORISTS_NOT_ESCAPED) | (1<<_:ROUND_VIP_NOT_ESCAPED) | (1<<_:ROUND_GAME_OVER))) != 0)
// suppress warning: 200 on amxmodx 1.8.2 // suppress warning: 200 on amxmodx 1.8.2
#if AMXX_VERSION_NUM < 183 #if AMXX_VERSION_NUM < 183