Skip to content

Conversation

@asherkin
Copy link
Member

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.

Raised by @DoctorOcsid on Discord.

@asherkin asherkin added the Bug general bugs; can be anything label Aug 18, 2018
Copy link
Member

@Headline Headline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If my understanding is correct, the removal of that flag doesn't even change the behavior since sm_map menu points to default in the configurations correct?

@asherkin
Copy link
Member Author

asherkin commented Aug 19, 2018

These 2 currently have a separate file specified:

/* Admin menu, map menu */
"sm_map menu"
{
"file" "addons/sourcemod/configs/adminmenu_maplist.ini"
}
/* Admin menu, map voting menu */
"sm_votemap menu"
{
"file" "addons/sourcemod/configs/adminmenu_maplist.ini"
}

The problem is that upon removal of that configuration (or if that file can't be loaded), they fall back to loading all the maps rather than the documented behaviour of try "default" then "mapcyclefile".

There is indeed no out-of-the-box behaviour change from this PR though.

Copy link
Member

@Headline Headline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🍻

@asherkin asherkin merged commit caf0914 into master Aug 19, 2018
@asherkin asherkin deleted the asherkin-patch-1 branch August 19, 2018 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug general bugs; can be anything

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants