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:
@@ -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,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);
|
||||
|
||||
Reference in New Issue
Block a user