-
Notifications
You must be signed in to change notification settings - Fork 3
Fixed chat message now showing the correct required number of votes #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| g_hEnhancedMenu.AddItem("Alphabetic", "Alphabetic"); | ||
|
|
||
| for( int i = 0; i <= 10; ++i ) | ||
| for(int i = GetConVarInt(g_cvMinTier); i <= GetConVarInt(g_cvMaxTier); ++i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace all GetConvarInt with convar.IntValue
|
|
||
| void OpenNominateMenuTier(int client, int tier) | ||
| { | ||
| DisplayMenu(g_aTierMenus.Get(tier-GetConVarInt(g_cvMinTier)), client, MENU_TIME_FOREVER); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user the Display method instead of function
| else if (action == MenuAction_End) | ||
| { | ||
| if (menu != g_hNominateMenu && menu != INVALID_HANDLE) | ||
| if (menu != g_hNominateMenu && menu != INVALID_HANDLE && FindValueInArray(g_aTierMenus, menu) == -1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Find method
|
|
||
| g_cvMinTier = CreateConVar("smc_min_tier", "0", "The minimum tier to show on the enhanced menu", _, true, 0.0, true, 10.0); | ||
| g_cvMaxTier = CreateConVar("smc_max_tier", "10", "The maximum tier to show on the enhanced menu", _, true, 0.0, true, 10.0); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably add a sanity check so that people don't put a max of 5 and a min of 10
Update shavit-mapchooser.sp
No description provided.