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 GitHub
parent 20d917a307
commit bb84a43a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}