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
+4 -3
View File
@@ -487,7 +487,8 @@ void renderdocsection(void *menu, bool init)
s_sprintf(s.cmd)("saycommand [/%s ]", id.name);
}
msections.sort(msectionsort);
loopv(msections) { menumanual(menu, i, msections[i].name, msections[i].cmd); }
menureset(menu);
loopv(msections) { menumanual(menu, msections[i].name, msections[i].cmd); }
return;
}
}
@@ -498,11 +499,11 @@ void renderdocmenu(void *menu, bool init)
{
static vector<maction> actions;
actions.setsize(0);
menureset(menu);
loopv(sections)
{
maction &a = actions.add();
s_sprintf(a.cmd)("showmenu [%s]", sections[i].name);
menumanual(menu, i, sections[i].name, a.cmd);
menumanual(menu, sections[i].name, a.cmd);
}
}