Debian Codegraph @

debian/patches/debian/ui-reinstate-minimal-code-to-determine-whether-this-.patch

raw symbols SCIP
1 From: Simon McVittie <[email protected]>
2 Date: Tue, 20 Jan 2015 09:23:49 +0000
3 Subject: ui: reinstate minimal code to determine whether this is the demo
4
5 ---
6 code/q3_ui/ui_gameinfo.c | 6 ++++++
7 1 file changed, 6 insertions(+)
8
9 diff --git a/code/q3_ui/ui_gameinfo.c b/code/q3_ui/ui_gameinfo.c
10 index 6d857de..4b8aaad 100644
11 --- a/code/q3_ui/ui_gameinfo.c
12 +++ b/code/q3_ui/ui_gameinfo.c
13 @@ -806,10 +806,16 @@ UI_InitGameinfo
14 ===============
15 */
16 void UI_InitGameinfo( void ) {
17 + char basegame[MAX_INFO_STRING];
18
19 UI_InitMemory();
20 UI_LoadArenas();
21 UI_LoadBots();
22
23 uis.demoversion = qfalse;
24 +
25 + trap_Cvar_VariableStringBuffer("com_basegame", basegame, sizeof(basegame));
26 + if (!strcmp (basegame, "demoq3")) {
27 + uis.demoversion = qtrue;
28 + }
29 }