no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1075 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-06-01 20:42:59 +00:00
parent 2d93ad9416
commit ca342d0651
4 changed files with 31 additions and 29 deletions
+3 -3
View File
@@ -637,9 +637,9 @@ COMMAND(givemaster, ARG_1INT);
struct mline { string cmd; };
static vector<mline> mlines;
void *kickmenu = NULL, *banmenu = NULL;
void *kickmenu = NULL, *banmenu = NULL, *forceteammenu = NULL, *givemastermenu = NULL;
void refreshmastermenu(void *menu, bool init)
void refreshsopmenu(void *menu, bool init)
{
if(!init) return;
@@ -648,7 +648,7 @@ void refreshmastermenu(void *menu, bool init)
loopv(players) if(players[i])
{
string &s = mlines.add().cmd;
s_sprintf(s)("%s %d", menu==kickmenu ? "kick" : "ban", i);
s_sprintf(s)("%s %d", menu==kickmenu ? "kick" : (menu==banmenu ? "ban" : (menu==forceteammenu ? "forceteam" : "givemaster")), i);
menumanual(menu, item++, players[i]->name, s);
}
}