Skip to content

Commit 984bd70

Browse files
committed
core: call canceled forward after block in analysis
1 parent 64c91e5 commit 984bd70

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

addons/amxmodx/scripting/include/map_manager_consts.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ enum {
5050

5151
enum {
5252
ALLOW_VOTE,
53-
ABORT_VOTE
53+
ABORT_VOTE,
54+
ABORT_VOTE_WITH_FORWARD
5455
};
5556

5657
enum {

addons/amxmodx/scripting/map_manager_core.sma

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,9 @@ finish_vote()
586586
ExecuteForward(g_hForwards[ANALYSIS_OF_RESULTS], ret, g_iVoteType, g_iTotalVotes);
587587

588588
if(ret) {
589+
if(ret == ABORT_VOTE_WITH_FORWARD) {
590+
ExecuteForward(g_hForwards[VOTE_CANCELED], ret, g_iVoteType);
591+
}
589592
return;
590593
}
591594

0 commit comments

Comments
 (0)