Fix a navigation bug in Plugin Cvars menu (#637)

This commit is contained in:
Vincent Herbet 2018-11-02 14:16:36 +01:00 committed by Arkshine
parent be526418bf
commit 5c5fbd83d1

View File

@ -468,7 +468,7 @@ public CvarMenuSelection(id, menu, item)
if (ExplicitPlugin[id]==-1) if (ExplicitPlugin[id]==-1)
{ {
DisplayPluginMenuDefault(id); DisplayPluginMenu(id,"Plugin Cvar Menu:", "PluginMenuSelection","DisplayCvarMenu","GetNumberOfCvarsForPlid");
} }
} }
else if (item==MENU_BACK) else if (item==MENU_BACK)
@ -790,7 +790,7 @@ public CommandMenuSelection(id, menu, item)
if (ExplicitPlugin[id]==-1) if (ExplicitPlugin[id]==-1)
{ {
client_cmd(id,"amx_plugincmdmenu"); DisplayPluginMenu(id,"Plugin Command Menu:", "PluginMenuSelection","DisplayCmdMenu","GetNumberOfCmdsForPlid");
} }
} }
else if (item==MENU_BACK) 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. // We need to display a list of the plugins, instead of a specific plugin.
ExplicitPlugin[id]=-1; ExplicitPlugin[id]=-1;
DisplayPluginMenuDefault(id); DisplayPluginMenu(id,"Plugin Command Menu:", "PluginMenuSelection","DisplayCmdMenu","GetNumberOfCmdsForPlid");
} }
else else
{ {
@ -925,8 +925,3 @@ public CommandMenuCommand(id, level, cid)
} }
return PLUGIN_HANDLED; return PLUGIN_HANDLED;
} }
DisplayPluginMenuDefault(id)
{
DisplayPluginMenu(id,"Plugin Command Menu:", "PluginMenuSelection","DisplayCmdMenu","GetNumberOfCmdsForPlid");
}