don't play local VCs if voicecomsounds is "Off"

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5569 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-08-08 16:46:11 +00:00
parent 91b3c9fe0a
commit b7cf748063
2 changed files with 4 additions and 10 deletions
+2
View File
@@ -1261,6 +1261,7 @@ void *kickmenu = NULL, *banmenu = NULL, *forceteammenu = NULL, *giveadminmenu =
void refreshsopmenu(void *menu, bool init)
{
//TODO: add a text-field for giving a reason
menureset(menu);
mlines.shrink(0);
mlines.reserve(players.length());
@@ -1268,6 +1269,7 @@ void refreshsopmenu(void *menu, bool init)
{
mline &m = mlines.add();
copystring(m.name, colorname(players[i]));
//formatstring(m.cmd)("%s %d%s", menu==kickmenu ? "kick" : (menu==banmenu ? "ban" : (menu==forceteammenu ? "forceteam" : "giveadmin")), i, (menu==kickmenu||menu==banmenu)?" NONE":"");
formatstring(m.cmd)("%s %d", menu==kickmenu ? "kick" : (menu==banmenu ? "ban" : (menu==forceteammenu ? "forceteam" : "giveadmin")), i);
menumanual(menu, m.name, m.cmd);
}