scoreboard closing fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2652 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-16 23:34:10 +00:00
parent 4c6596efec
commit 601e1f097b
2 changed files with 8 additions and 1 deletions
+7 -1
View File
@@ -7,7 +7,13 @@ void *scoremenu = NULL, *teammenu = NULL, *ctfmenu = NULL;
void showscores(bool on)
{
menuset(on ? (m_flags ? ctfmenu : (m_teammode ? teammenu : scoremenu)) : NULL);
if(on) menuset(m_flags ? ctfmenu : (m_teammode ? teammenu : scoremenu));
else
{
closemenu("score");
closemenu("team score");
closemenu("ctf score");
}
}
COMMAND(showscores, ARG_DOWN);