mirror of
https://github.com/rehlds/reapi.git
synced 2025-03-13 14:00:19 +03:00
Chapter Two: Fix HadRoundExpired
This commit is contained in:
parent
a046d2fec9
commit
3152021842
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user