Skip to content

Commit 68eded0

Browse files
committed
scheduler: move map change before ignore check
1 parent 507990a commit 68eded0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

addons/amxmodx/scripting/map_manager_scheduler.sma

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,12 @@ public event_teamscore()
338338
}
339339
public event_newround()
340340
{
341+
if(is_vote_finished() && g_bChangeMapNextRound) {
342+
new nextmap[MAPNAME_LENGTH]; get_string(NEXTMAP, nextmap, charsmax(nextmap));
343+
client_print_color(0, print_team_default, "%s^1 %L^3 %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", nextmap);
344+
intermission();
345+
}
346+
341347
if(g_bIgnoreCheckStart & IGNORE_ROUND_CHECK) {
342348
return 0;
343349
}
@@ -359,12 +365,6 @@ public event_newround()
359365
mapm_start_vote(g_iVoteType);
360366
}
361367

362-
if(is_vote_finished() && g_bChangeMapNextRound) {
363-
new nextmap[MAPNAME_LENGTH]; get_string(NEXTMAP, nextmap, charsmax(nextmap));
364-
client_print_color(0, print_team_default, "%s^1 %L^3 %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", nextmap);
365-
intermission();
366-
}
367-
368368
return 0;
369369
}
370370
/*

0 commit comments

Comments
 (0)