Skip to content

Commit e538944

Browse files
committed
update CheckWinConditions forward
1 parent b35e9ea commit e538944

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

api_rounds.sma

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ new g_iFwRoundRestart;
2424
new g_iFwRoundTimerTick;
2525
new g_iFwCheckWinConditions;
2626

27+
// deprecated
28+
new g_iFwCheckWinCondition;
29+
2730
new Array:g_irgCheckWinConditionHooks;
2831

2932
new g_pCvarRoundEndDelay;
@@ -43,7 +46,10 @@ public plugin_init() {
4346
g_iFwRoundExpired = CreateMultiForward("Round_Fw_RoundExpired", ET_IGNORE);
4447
g_iFwRoundRestart = CreateMultiForward("Round_Fw_RoundRestart", ET_IGNORE);
4548
g_iFwRoundTimerTick = CreateMultiForward("Round_Fw_RoundTimerTick", ET_IGNORE);
46-
g_iFwCheckWinConditions = CreateMultiForward("Round_Fw_CheckWinCondition", ET_STOP);
49+
g_iFwCheckWinConditions = CreateMultiForward("Round_Fw_CheckWinConditions", ET_STOP);
50+
51+
//deprecated
52+
g_iFwCheckWinCondition = CreateMultiForward("Round_Fw_CheckWinCondition", ET_STOP);
4753

4854
g_irgCheckWinConditionHooks = ArrayCreate(Hook);
4955

@@ -143,6 +149,13 @@ public HC_CheckWinConditions() {
143149
}
144150

145151
static iReturn;
152+
153+
ExecuteForward(g_iFwCheckWinCondition, iReturn);
154+
if (iReturn != PLUGIN_CONTINUE) {
155+
log_amx("CheckWinCondition forward is deprecated!");
156+
return HC_SUPERCEDE;
157+
}
158+
146159
ExecuteForward(g_iFwCheckWinConditions, iReturn);
147160
if (iReturn != PLUGIN_CONTINUE) {
148161
return HC_SUPERCEDE;

0 commit comments

Comments
 (0)