diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-09-04 15:53:16 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-09-04 15:53:16 +0000 |
commit | a63351b924daa288b120af78607434ca5acc60d8 (patch) | |
tree | 902f9b525cf107ee27cee2788ddaedfe313b8a8d /source/sv_main.c | |
parent | b96aee6bda286ae78d7821a2dfd21582daa05ba3 (diff) |
Changed Com_DPrintf, Com_WPrintf and Com_EPrintf functions to macros.
Introduced Com_LPrintf, FS_DPrintf, SV_DPrintf.
Don't include any developer code at all unless built with _DEBUG.
Diffstat (limited to 'source/sv_main.c')
-rw-r--r-- | source/sv_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/sv_main.c b/source/sv_main.c index e6d8ed4..cbd03c6 100644 --- a/source/sv_main.c +++ b/source/sv_main.c @@ -61,8 +61,8 @@ cvar_t *sv_redirect_address; cvar_t *sv_hostname; cvar_t *sv_public; // should heartbeats be sent -#if USE_CLIENT -cvar_t *sv_debug_send; +#ifdef _DEBUG +cvar_t *sv_debug; cvar_t *sv_pad_packets; #endif cvar_t *sv_lan_force_rate; @@ -1816,8 +1816,8 @@ void SV_Init( void ) { sv_downloadserver = Cvar_Get( "sv_downloadserver", "", 0 ); sv_redirect_address = Cvar_Get( "sv_redirect_address", "", 0 ); -#if USE_CLIENT - sv_debug_send = Cvar_Get( "sv_debug_send", "0", 0 ); +#ifdef _DEBUG + sv_debug = Cvar_Get( "sv_debug", "0", 0 ); sv_pad_packets = Cvar_Get( "sv_pad_packets", "0", 0 ); #endif sv_lan_force_rate = Cvar_Get( "sv_lan_force_rate", "0", CVAR_LATCH ); |