Skip to content

Commit

Permalink
Added a new option to the cvar gal_general_options, disable the
Browse files Browse the repository at this point in the history
voting menu maps appearing in alphabetical order.
  • Loading branch information
evandrocoan committed Jun 3, 2017
1 parent 9511f95 commit 89d5f61
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion githooks/galileo.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7.2-886
5.7.2-887
1 change: 1 addition & 0 deletions installers/galileo.bbcode
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,7 @@ doesn't use them anymore and/or is tired of supporting so many repos.

[LIST=1]
[*]Fixed the chat prefix not showing up on some chat messages.
[*]Added a new option to the cvar `gal_general_options`, disable the voting menu maps appearing in alphabetical order.
[/LIST]

[B]2017-05-25 | v5.7.2-885[/B]
Expand Down
2 changes: 2 additions & 0 deletions plugins/addons/amxmodx/configs/galileo/galileo.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,8 @@ gal_vote_announcechoice 1
// change the map at the current round end, instead of immediately.
// This is the same as always pass the argument option `-roundend`.
//
// 4 - Disable the voting menu maps appearing in alphabetical order.
//
// For example, if you want to mude the options 1 and 2, use 1 + 2:
// gal_general_options 3
//
Expand Down
12 changes: 8 additions & 4 deletions plugins/addons/amxmodx/scripting/galileo.sma
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
new const PLUGIN_NAME[] = "Galileo";
new const PLUGIN_AUTHOR[] = "Brad Jones/Addons zz";
new const PLUGIN_VERSION[] = "v5.7.2-886";
new const PLUGIN_VERSION[] = "v5.7.2-887";

/**
* Enables the support to Sven Coop 'mp_nextmap_cycle' cvar and vote map start by the Ham_Use
Expand Down Expand Up @@ -494,8 +494,9 @@ new g_user_msgid;
/**
* General Constants.
*/
#define MUTE_MESSAGES_SPAMMING 1
#define VOTE_WAIT_FOR_ROUND_END 2
#define MUTE_MESSAGES_SPAMMING 1
#define VOTE_WAIT_FOR_ROUND_END 2
#define DO_NOT_ALPHABETIZE_VOTEMAP_MENU 4

#define MAX_INTEGER 2147483647
#define MIN_INTEGER -2147483648
Expand Down Expand Up @@ -7471,7 +7472,10 @@ stock initializeTheVoteDisplay()
nomination_clearAll();

// Alphabetize the maps
SortCustomSynced2D( g_votingMapNames, g_votingMapInfos, g_totalVoteOptions );
if( !( get_pcvar_num( cvar_generalOptions ) & DO_NOT_ALPHABETIZE_VOTEMAP_MENU ) )
{
SortCustomSynced2D( g_votingMapNames, g_votingMapInfos, g_totalVoteOptions );
}

// Skip bots and hltv
get_players( players, playersCount, "ch" );
Expand Down

0 comments on commit 89d5f61

Please sign in to comment.