Skip to content

Commit

Permalink
online_sorter: more accurate check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistrick committed Apr 1, 2021
1 parent 3000abd commit 72034ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/amxmodx/scripting/map_manager_online_sorter.sma
Expand Up @@ -2,7 +2,7 @@
#include <map_manager>

#define PLUGIN "Map Manager: Online sorter"
#define VERSION "0.0.2"
#define VERSION "0.0.3"
#define AUTHOR "Mistrick"

#pragma semicolon 1
Expand Down Expand Up @@ -50,7 +50,7 @@ public mapm_prepare_votelist(type)
index = random_num(0, ArraySize(array) - 1);
ArrayGetString(array, index, map, charsmax(map));
ArrayDeleteItem(array, index);
if(mapm_push_map_to_votelist(map, PUSH_BY_ONLINE_SORTER) == PUSH_BLOCKED) {
if(mapm_push_map_to_votelist(map, PUSH_BY_ONLINE_SORTER) != PUSH_SUCCESS) {
i--;
}
}
Expand Down

0 comments on commit 72034ac

Please sign in to comment.