Skip to content

Commit

Permalink
Fix a navigation bug in Plugin Cvars menu (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkshine committed Nov 3, 2018
1 parent be52641 commit 5c5fbd8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions plugins/pluginmenu.sma
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
{
Expand All @@ -925,8 +925,3 @@ public CommandMenuCommand(id, level, cid)
}
return PLUGIN_HANDLED;
}

DisplayPluginMenuDefault(id)
{
DisplayPluginMenu(id,"Plugin Command Menu:", "PluginMenuSelection","DisplayCmdMenu","GetNumberOfCmdsForPlid");
}

0 comments on commit 5c5fbd8

Please sign in to comment.