Make the help command easier for csqc to replace without needing to use menuqc.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5717 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-06-27 19:32:36 +00:00
parent 9dda706952
commit ee55057f8d
1 changed files with 21 additions and 4 deletions

View File

@ -997,10 +997,10 @@ void M_UnbindCommand (const char *command)
//=============================================================================
/* HELP MENU */
int help_page;
int num_help_pages;
static int help_page;
static int num_help_pages;
struct
static struct
{
char *pattern;
int base;
@ -1082,7 +1082,13 @@ qboolean M_Help_Key (int key, emenu_t *m)
void M_Menu_Help_f (void)
{
int i;
emenu_t *helpmenu = M_CreateMenu(0);
emenu_t *helpmenu;
#ifdef CSQC_DAT
if (CSQC_ConsoleCommand(CL_TargettedSplit(false), Cmd_Argv(0)))
;//return;
#endif
helpmenu = M_CreateMenu(0);
helpmenu->predraw = M_Help_Draw;
helpmenu->key = M_Help_Key;
@ -1145,6 +1151,17 @@ static char *quitMessage [] =
"If you quit now, I'll\n"
"throw a blanket-party\n"
"for you next time!",
// "Only cowards press Y here.\n",
// "Is your life empty and\n"
// "devoid of enjoyment?\n",
// "Are you off to play with\n"
// "your joy stick now?\n",
};