cmenu console command now opens the menu if it isn't already open

git-svn-id: https://svn.eduke32.com/eduke32@7269 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-12-15 01:38:32 +00:00
parent d2f16606c5
commit 2be7afd33c

View file

@ -732,6 +732,9 @@ static int osdcmd_cmenu(osdcmdptr_t parm)
return OSDCMD_OK; return OSDCMD_OK;
} }
if ((g_player[myconnectindex].ps->gm & MODE_MENU) != MODE_MENU)
Menu_Open(myconnectindex);
Menu_Change(Batol(parm->parms[0])); Menu_Change(Batol(parm->parms[0]));
return OSDCMD_OK; return OSDCMD_OK;