diff --git a/qw_common/common.c b/qw_common/common.c index f4991bc..bfb53bd 100644 --- a/qw_common/common.c +++ b/qw_common/common.c @@ -54,6 +54,7 @@ qboolean standard_quake = true, rogue, hipnotic; char gamedirfile[MAX_OSPATH]; +extern cvar_t developer; /* @@ -1416,7 +1417,8 @@ int COM_FOpenFile (char *filename, FILE **file) for (i=0 ; inumfiles ; i++) if (!strcmp (pak->files[i].name, filename)) { // found it! - Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename); + if(developer.value) + Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename); // open a new file on the pakfile *file = fopen (pak->filename, "rb"); if (!*file) @@ -1436,7 +1438,8 @@ int COM_FOpenFile (char *filename, FILE **file) if (findtime == -1) continue; - Sys_Printf ("FindFile: %s\n",netpath); + if(developer.value) + Sys_Printf ("FindFile: %s\n",netpath); *file = fopen (netpath, "rb"); return COM_filelength (*file); diff --git a/uquake/common.c b/uquake/common.c index 9ef74d0..f545752 100644 --- a/uquake/common.c +++ b/uquake/common.c @@ -52,6 +52,8 @@ char com_cmdline[CMDLINE_LENGTH]; qboolean standard_quake = true, rogue, hipnotic; +extern cvar_t developer; + /* @@ -1317,7 +1319,8 @@ int COM_FindFile (char *filename, int *handle, FILE **file) for (i=0 ; inumfiles ; i++) if (!strcmp (pak->files[i].name, filename)) { // found it! - Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename); + if(developer.value) + Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename); if (handle) { *handle = pak->handle; @@ -1363,7 +1366,8 @@ int COM_FindFile (char *filename, int *handle, FILE **file) strcpy (netpath, cachepath); } - Sys_Printf ("FindFile: %s\n",netpath); + if(developer.value) + Sys_Printf ("FindFile: %s\n",netpath); com_filesize = Sys_FileOpenRead (netpath, &i); if (handle) *handle = i;