Skip to content

Commit

Permalink
scheduler: move map change before ignore check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistrick committed Mar 24, 2021
1 parent 507990a commit 68eded0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions addons/amxmodx/scripting/map_manager_scheduler.sma
Expand Up @@ -338,6 +338,12 @@ public event_teamscore()
}
public event_newround()
{
if(is_vote_finished() && g_bChangeMapNextRound) {
new nextmap[MAPNAME_LENGTH]; get_string(NEXTMAP, nextmap, charsmax(nextmap));
client_print_color(0, print_team_default, "%s^1 %L^3 %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", nextmap);
intermission();
}

if(g_bIgnoreCheckStart & IGNORE_ROUND_CHECK) {
return 0;
}
Expand All @@ -359,12 +365,6 @@ public event_newround()
mapm_start_vote(g_iVoteType);
}

if(is_vote_finished() && g_bChangeMapNextRound) {
new nextmap[MAPNAME_LENGTH]; get_string(NEXTMAP, nextmap, charsmax(nextmap));
client_print_color(0, print_team_default, "%s^1 %L^3 %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", nextmap);
intermission();
}

return 0;
}
/*
Expand Down

0 comments on commit 68eded0

Please sign in to comment.