Skip to content

Commit

Permalink
Remove MAPLIST_FLAG_NO_DEFAULT misuses (#870)
Browse files Browse the repository at this point in the history
These two base plugins are using the MAPLIST_FLAG_NO_DEFAULT when they shouldn't, which causes much user (and SM developer) confusion as it is completely counter to the documentation.
  • Loading branch information
asherkin committed Aug 19, 2018
1 parent 17700e4 commit caf0914
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/basecommands/map.sp
Expand Up @@ -133,7 +133,7 @@ int LoadMapList(Menu menu)
if ((map_array = ReadMapList(g_map_array,
g_map_serial,
"sm_map menu",
MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_NO_DEFAULT|MAPLIST_FLAG_MAPSFOLDER))
MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_MAPSFOLDER))
!= null)
{
g_map_array = map_array;
Expand Down
2 changes: 1 addition & 1 deletion plugins/basevotes/votemap.sp
Expand Up @@ -274,7 +274,7 @@ int LoadMapList(Menu menu)
if ((map_array = ReadMapList(g_map_array,
g_map_serial,
"sm_votemap menu",
MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_NO_DEFAULT|MAPLIST_FLAG_MAPSFOLDER))
MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_MAPSFOLDER))
!= null)
{
g_map_array = map_array;
Expand Down

0 comments on commit caf0914

Please sign in to comment.