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
+1
View File
@@ -103,6 +103,7 @@ extern void rendermenumdl();
extern void menuset(void *m);
extern void menuselect(void *menu, int sel);
extern void showmenu(const char *name);
extern void closemenu(const char *name);
extern void addchange(const char *desc, int type);
extern void clearchanges(int type);
extern void refreshapplymenu(void *menu, bool init);
+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);