mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Add support for the demo version of the game
This allows the demo version of the game to be used, both for playing on demo servers, or for hosting a demo server
This commit is contained in:
parent
b0a683c188
commit
ab84a6ea58
11 changed files with 198 additions and 35 deletions
|
@ -4986,6 +4986,20 @@ void UI_HideStatistics_f()
|
|||
statsUpdater.CancelEventsOfType(EV_StatsUpdater_UpdateStats);
|
||||
}
|
||||
|
||||
/*
|
||||
====================
|
||||
UI_SalesScreen_f
|
||||
====================
|
||||
*/
|
||||
void UI_SalesScreen_f()
|
||||
{
|
||||
if (random() > 0.5) {
|
||||
Cbuf_AddText("pushmenu sales_splash1\n");
|
||||
} else {
|
||||
Cbuf_AddText("pushmenu sales_splash2\n");
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
====================
|
||||
CL_ShutdownUI
|
||||
|
@ -5256,6 +5270,7 @@ void CL_InitializeUI(void)
|
|||
Cmd_AddCommand("-statistics", UI_HideStatistics_f);
|
||||
Cmd_AddCommand("setreturnmenu", UI_SetReturnMenuToCurrent);
|
||||
Cmd_AddCommand("gotoreturnmenu", UI_PushReturnMenu_f);
|
||||
Cmd_AddCommand("salesscreen", UI_SalesScreen_f);
|
||||
|
||||
if (developer->integer) {
|
||||
UColor bgColor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue