Browse Source

Rename allow_console to developer in menu_int.h. Define NEW_ENGINE_INTERFACE.

pull/2/head
Alibek Omarov 7 years ago
parent
commit
9ab3300b76
  1. 4
      engine/client/cl_gameui.c
  2. 6
      engine/menu_int.h

4
engine/client/cl_gameui.c

@ -36,7 +36,7 @@ void UI_UpdateMenu( float realtime )
gameui.globals->frametime = host.realframetime; gameui.globals->frametime = host.realframetime;
gameui.globals->demoplayback = cls.demoplayback; gameui.globals->demoplayback = cls.demoplayback;
gameui.globals->demorecording = cls.demorecording; gameui.globals->demorecording = cls.demorecording;
gameui.globals->allow_console = host.allow_console; gameui.globals->developer = host.allow_console;
gameui.dllFuncs.pfnRedraw( realtime ); gameui.dllFuncs.pfnRedraw( realtime );
UI_UpdateUserinfo(); UI_UpdateUserinfo();
@ -1128,7 +1128,7 @@ qboolean UI_LoadProgs( void )
UI_ConvertGameInfo( &gameui.gameInfo, SI.GameInfo ); // current gameinfo UI_ConvertGameInfo( &gameui.gameInfo, SI.GameInfo ); // current gameinfo
// setup globals // setup globals
gameui.globals->allow_console = host.allow_console; gameui.globals->developer = host.allow_console;
// initialize game // initialize game
gameui.dllFuncs.pfnInit(); gameui.dllFuncs.pfnInit();

6
engine/menu_int.h

@ -20,6 +20,10 @@ GNU General Public License for more details.
#include "gameinfo.h" #include "gameinfo.h"
#include "wrect.h" #include "wrect.h"
// a macro for mainui_cpp, indicating that mainui should be compiled for
// Xash3D 1.0 interface
#define NEW_ENGINE_INTERFACE
typedef int HIMAGE; // handle to a graphic typedef int HIMAGE; // handle to a graphic
// flags for PIC_Load // flags for PIC_Load
@ -36,7 +40,7 @@ typedef struct ui_globalvars_s
int scrHeight; int scrHeight;
int maxClients; int maxClients;
int allow_console; int developer; // boolean, changed from allow_console to make mainui_cpp compile for both engines
int demoplayback; int demoplayback;
int demorecording; int demorecording;
char demoname[64]; // name of currently playing demo char demoname[64]; // name of currently playing demo

Loading…
Cancel
Save