From bb84a43a7bab3fb7b8effdc9f4f61d093c8592ca Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Fri, 2 Nov 2018 14:16:36 +0100 Subject: [PATCH] Fix a navigation bug in Plugin Cvars menu (#637) --- plugins/pluginmenu.sma | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/plugins/pluginmenu.sma b/plugins/pluginmenu.sma index 0bf1ec78..80f43fc3 100644 --- a/plugins/pluginmenu.sma +++ b/plugins/pluginmenu.sma @@ -468,7 +468,7 @@ public CvarMenuSelection(id, menu, item) if (ExplicitPlugin[id]==-1) { - DisplayPluginMenuDefault(id); + DisplayPluginMenu(id,"Plugin Cvar Menu:", "PluginMenuSelection","DisplayCvarMenu","GetNumberOfCvarsForPlid"); } } else if (item==MENU_BACK) @@ -790,7 +790,7 @@ public CommandMenuSelection(id, menu, item) if (ExplicitPlugin[id]==-1) { - client_cmd(id,"amx_plugincmdmenu"); + DisplayPluginMenu(id,"Plugin Command Menu:", "PluginMenuSelection","DisplayCmdMenu","GetNumberOfCmdsForPlid"); } } else if (item==MENU_BACK) @@ -914,7 +914,7 @@ public CommandMenuCommand(id, level, cid) { // We need to display a list of the plugins, instead of a specific plugin. ExplicitPlugin[id]=-1; - DisplayPluginMenuDefault(id); + DisplayPluginMenu(id,"Plugin Command Menu:", "PluginMenuSelection","DisplayCmdMenu","GetNumberOfCmdsForPlid"); } else { @@ -925,8 +925,3 @@ public CommandMenuCommand(id, level, cid) } return PLUGIN_HANDLED; } - -DisplayPluginMenuDefault(id) -{ - DisplayPluginMenu(id,"Plugin Command Menu:", "PluginMenuSelection","DisplayCmdMenu","GetNumberOfCmdsForPlid"); -}