improved lan searching

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2643 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-16 05:46:40 +00:00
parent dd18a7d0dc
commit af6c5eb918
24 changed files with 610 additions and 740 deletions
+7 -2
View File
@@ -478,10 +478,15 @@ void newmenu(char *name, char *hotkeys, char *forwardkeys)
addmenu(name, NULL, true, NULL, atoi(hotkeys) > 0, atoi(forwardkeys) > 0);
}
void menumanual(void *menu, int n, char *text, char *action, color *bgcolor, const char *desc)
void menureset(void *menu)
{
gmenu &m = *(gmenu *)menu;
m.items.deletecontentsp();
}
void menumanual(void *menu, char *text, char *action, color *bgcolor, const char *desc)
{
gmenu &m = *(gmenu *)menu;
if(!n) m.items.deletecontentsp();
m.items.add(new mitemmanual(&m, text, action, NULL, bgcolor, desc));
}