mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
bring in the standard builtins and randomize the quit message
This commit is contained in:
parent
9f67e81049
commit
db7a2264c0
2 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,8 @@ void () Menu_Quit = #0;
|
||||||
void (integer x, integer y, string name) Draw_Pic = #0;
|
void (integer x, integer y, string name) Draw_Pic = #0;
|
||||||
void (integer x, integer y, string text) Draw_String = #0;
|
void (integer x, integer y, string text) Draw_String = #0;
|
||||||
|
|
||||||
|
float () random = #0;
|
||||||
|
|
||||||
float time;
|
float time;
|
||||||
entity self;
|
entity self;
|
||||||
.float nextthink;
|
.float nextthink;
|
||||||
|
@ -120,7 +122,7 @@ void (integer x, integer y, integer width, integer lines) text_box =
|
||||||
integer () quit =
|
integer () quit =
|
||||||
{
|
{
|
||||||
Menu_SelectMenu ("quit");
|
Menu_SelectMenu ("quit");
|
||||||
quit_index++;
|
quit_index = integer (random () * 8);
|
||||||
quit_index &= 7;
|
quit_index &= 7;
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -314,6 +314,7 @@ Menu_Init (void)
|
||||||
PR_AddBuiltin (&menu_pr_state, "Menu_SetQuit", bi_Menu_SetQuit, -1);
|
PR_AddBuiltin (&menu_pr_state, "Menu_SetQuit", bi_Menu_SetQuit, -1);
|
||||||
PR_AddBuiltin (&menu_pr_state, "Menu_Quit", bi_Menu_Quit, -1);
|
PR_AddBuiltin (&menu_pr_state, "Menu_Quit", bi_Menu_Quit, -1);
|
||||||
|
|
||||||
|
PR_Cmds_Init (&menu_pr_state);
|
||||||
R_Progs_Init (&menu_pr_state);
|
R_Progs_Init (&menu_pr_state);
|
||||||
|
|
||||||
Cmd_AddCommand ("togglemenu", togglemenu_f,
|
Cmd_AddCommand ("togglemenu", togglemenu_f,
|
||||||
|
|
Loading…
Reference in a new issue