Skip to content

Commit 72034ac

Browse files
committed
online_sorter: more accurate check
1 parent 3000abd commit 72034ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/amxmodx/scripting/map_manager_online_sorter.sma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <map_manager>
33

44
#define PLUGIN "Map Manager: Online sorter"
5-
#define VERSION "0.0.2"
5+
#define VERSION "0.0.3"
66
#define AUTHOR "Mistrick"
77

88
#pragma semicolon 1
@@ -50,7 +50,7 @@ public mapm_prepare_votelist(type)
5050
index = random_num(0, ArraySize(array) - 1);
5151
ArrayGetString(array, index, map, charsmax(map));
5252
ArrayDeleteItem(array, index);
53-
if(mapm_push_map_to_votelist(map, PUSH_BY_ONLINE_SORTER) == PUSH_BLOCKED) {
53+
if(mapm_push_map_to_votelist(map, PUSH_BY_ONLINE_SORTER) != PUSH_SUCCESS) {
5454
i--;
5555
}
5656
}

0 commit comments

Comments
 (0)