Permalink
Browse files

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

  • Loading branch information...
Arkshine committed Nov 2, 2018
1 parent be52641 commit 5c5fbd83d11612b3541b4055a971d5feb5069428
Showing with 3 additions and 8 deletions.
  1. +3 −8 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");
}

0 comments on commit 5c5fbd8

Please sign in to comment.