mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Using LISTENER_Cvar_Get macro
This commit is contained in:
parent
ec4c8458f0
commit
1ed03b0716
1 changed files with 16 additions and 8 deletions
|
@ -34,12 +34,22 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined( GAME_DLL )
|
#if defined( GAME_DLL )
|
||||||
|
|
||||||
#include "../game/player.h"
|
#include "../game/player.h"
|
||||||
#include "../game/consoleevent.h"
|
#include "../game/consoleevent.h"
|
||||||
#include "animate.h"
|
#include "animate.h"
|
||||||
#elif defined ( CGAME_DLL )
|
|
||||||
|
#define LISTENER_Cvar_Get gi.Cvar_Get
|
||||||
|
|
||||||
|
#elif defined(CGAME_DLL)
|
||||||
|
|
||||||
|
#define LISTENER_Cvar_Get cgi.Cvar_Get
|
||||||
|
|
||||||
#elif defined ( UI_LIB )
|
#elif defined ( UI_LIB )
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#define LISTENER_Cvar_Get Cvar_Get
|
||||||
|
|
||||||
#include "../client/client.h"
|
#include "../client/client.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -532,13 +542,11 @@ bool L_EventSystemStarted( void )
|
||||||
|
|
||||||
void L_InitEvents( void )
|
void L_InitEvents( void )
|
||||||
{
|
{
|
||||||
#if defined ( GAME_DLL )
|
g_showevents = LISTENER_Cvar_Get( "g_showevents", "0", 0 );
|
||||||
g_showevents = gi.Cvar_Get( "g_showevents", "0", 0 );
|
g_eventlimit = LISTENER_Cvar_Get( "g_eventlimit", "5000", 0 );
|
||||||
g_eventlimit = gi.Cvar_Get( "g_eventlimit", "5000", 0 );
|
g_timeevents = LISTENER_Cvar_Get( "g_timeevents", "0", 0 );
|
||||||
g_timeevents = gi.Cvar_Get( "g_timeevents", "0", 0 );
|
g_watch = LISTENER_Cvar_Get( "g_watch", "0", 0 );
|
||||||
g_watch = gi.Cvar_Get( "g_watch", "0", 0 );
|
g_eventstats = LISTENER_Cvar_Get( "g_eventstats", "0", 0 );
|
||||||
g_eventstats = gi.Cvar_Get( "g_eventstats", "0", 0 );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Event::LoadEvents();
|
Event::LoadEvents();
|
||||||
ClassDef::BuildEventResponses();
|
ClassDef::BuildEventResponses();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue