Remove MAPLIST_FLAG_NO_DEFAULT misuses (#870)

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.
This commit is contained in:
Asher Baker 2018-08-19 12:41:53 +01:00 committed by GitHub
parent 17700e45b0
commit caf0914289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;