From a7380fef669c6dce677e531eb604207133c5c6a3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 27 Aug 2002 18:05:59 +0000 Subject: [PATCH] nuke msg_suppress_1 in favor of Sys_DPrintf --- libs/video/renderer/sw/d_surf.c | 3 +-- libs/video/renderer/sw32/d_surf.c | 3 +-- libs/video/targets/vid_mgl.c | 6 ------ nq/include/game.h | 2 -- nq/source/host.c | 1 - qw/include/host.h | 4 ---- qw/source/com.c | 1 - 7 files changed, 2 insertions(+), 18 deletions(-) diff --git a/libs/video/renderer/sw/d_surf.c b/libs/video/renderer/sw/d_surf.c index e9762b7e5..8e5c3cd00 100644 --- a/libs/video/renderer/sw/d_surf.c +++ b/libs/video/renderer/sw/d_surf.c @@ -105,8 +105,7 @@ D_ClearCacheGuard (void) void D_InitCaches (void *buffer, int size) { -// if (!msg_suppress_1) -// Con_Printf ("%ik surface cache\n", size/1024); + Sys_DPrintf ("D_InitCaches: %ik surface cache\n", size/1024); sc_size = size - GUARDSIZE; sc_base = (surfcache_t *) buffer; diff --git a/libs/video/renderer/sw32/d_surf.c b/libs/video/renderer/sw32/d_surf.c index a0f95f230..e444922a8 100644 --- a/libs/video/renderer/sw32/d_surf.c +++ b/libs/video/renderer/sw32/d_surf.c @@ -106,8 +106,7 @@ D_ClearCacheGuard (void) void D_InitCaches (void *buffer, int size) { -// if (!msg_suppress_1) -// Con_Printf ("%ik surface cache\n", size/1024); + Sys_DPrintf ("D_InitCaches: %ik surface cache\n", size/1024); sc_size = size - GUARDSIZE; sc_base = (surfcache_t *) buffer; diff --git a/libs/video/targets/vid_mgl.c b/libs/video/targets/vid_mgl.c index edd13157f..cbf8dea20 100644 --- a/libs/video/targets/vid_mgl.c +++ b/libs/video/targets/vid_mgl.c @@ -2338,10 +2338,7 @@ AppActivate (BOOL fActive, BOOL minimize) if (ActiveApp) { if (vid_fulldib_on_focus_mode) { if (vid.initialized) { - msg_suppress_1 = true; // don't want to see normal mode - // set message VID_SetMode (vid_fulldib_on_focus_mode, vid_curpal); - msg_suppress_1 = false; t = in_mode_set; in_mode_set = true; @@ -2364,10 +2361,7 @@ AppActivate (BOOL fActive, BOOL minimize) if (vid.initialized) { force_minimized = true; i = vid_fulldib_on_focus_mode; - msg_suppress_1 = true; // don't want to see normal mode - // set message VID_SetMode (windowed_default, vid_curpal); - msg_suppress_1 = false; vid_fulldib_on_focus_mode = i; force_minimized = false; diff --git a/nq/include/game.h b/nq/include/game.h index 4b2fec2f8..703d7fc55 100644 --- a/nq/include/game.h +++ b/nq/include/game.h @@ -156,8 +156,6 @@ #define SOUND_CHANNELS 8 -extern qboolean msg_suppress_1; // suppresses resolution and cache size console output - // an fullscreen DIB focus gain/loss extern int current_skill; // skill level for currently loaded level (in case // the user changes the cvar while the level is // running, this reflects the level actually in use) diff --git a/nq/source/host.c b/nq/source/host.c index 02a0d333b..d7d4b55db 100644 --- a/nq/source/host.c +++ b/nq/source/host.c @@ -79,7 +79,6 @@ static plugin_list_t client_plugin_list[] = { CLIENT_PLUGIN_LIST }; -qboolean msg_suppress_1 = 0; qboolean host_initialized; // true if into command execution quakeparms_t host_parms; diff --git a/qw/include/host.h b/qw/include/host.h index 1e7149554..96b9b7469 100644 --- a/qw/include/host.h +++ b/qw/include/host.h @@ -51,10 +51,6 @@ extern double host_frametime; // Tonik extern int host_framecount; // incremented every frame, never reset -extern qboolean msg_suppress_1; // Suppresses resolution and cache size - // console output and fullscreen DIB focus - // gain/loss - void Host_ServerFrame (void); void Host_InitCommands (void); void Host_Init (void); diff --git a/qw/source/com.c b/qw/source/com.c index cdb7fe119..95560b580 100644 --- a/qw/source/com.c +++ b/qw/source/com.c @@ -44,7 +44,6 @@ cvar_t *registered; int static_registered = 1; // only for startup check, then set qboolean com_modified; // set true if using non-id files -qboolean msg_suppress_1 = 0; void COM_Path_f (void);