- fixed admin menu regression bugs

- if a category fails to draw, the root menu now gets re-displayed

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401533
This commit is contained in:
David Anderson
2007-10-02 16:11:02 +00:00
parent 5fa3cbf134
commit 97d2c4b5a9
4 changed files with 12 additions and 4 deletions
+1 -2
View File
@@ -113,6 +113,7 @@ public CategoryHandler(Handle:topmenu,
String:buffer[],
maxlength)
{
PrintToServer("CategoryHandler(%x, %d, %x)", topmenu, action, object_id);
if (action == TopMenuAction_DisplayTitle)
{
if (object_id == INVALID_TOPMENUOBJECT)
@@ -147,8 +148,6 @@ public CategoryHandler(Handle:topmenu,
Format(buffer, maxlength, "%T", "Voting Commands", param);
}
}
return 0;
}
public __GetAdminTopMenu(Handle:plugin, numParams)