From caf09142898688cedbe5da1c8a18eb70c2afaf79 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Sun, 19 Aug 2018 12:41:53 +0100 Subject: [PATCH] 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. --- plugins/basecommands/map.sp | 2 +- plugins/basevotes/votemap.sp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/basecommands/map.sp b/plugins/basecommands/map.sp index 0403534f..22b51d19 100644 --- a/plugins/basecommands/map.sp +++ b/plugins/basecommands/map.sp @@ -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; diff --git a/plugins/basevotes/votemap.sp b/plugins/basevotes/votemap.sp index 111fe078..eaa3ae0d 100644 --- a/plugins/basevotes/votemap.sp +++ b/plugins/basevotes/votemap.sp @@ -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;