From 3152021842e7cb55e33e5c4c84cf72a78791ae0c Mon Sep 17 00:00:00 2001 From: s1lent Date: Mon, 23 Oct 2017 00:25:47 +0700 Subject: [PATCH] Chapter Two: Fix HadRoundExpired --- reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc index dc18a52..198d913 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc @@ -4,9 +4,9 @@ #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 -#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 #if AMXX_VERSION_NUM < 183