From 9bffb2e2d600b9f7761533ff6c8766af46354c4a Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 16 Oct 2004 21:33:04 +0000 Subject: [PATCH] don't spew shaders to console on load unless developer is 2 or higher git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4651 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/model_brush.c b/model_brush.c index 5f432355..847abf38 100644 --- a/model_brush.c +++ b/model_brush.c @@ -3663,10 +3663,13 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l) if (!COM_ParseToken(&text, true)) break; } - Con_Printf("%s %i: ", shadername, passnumber); - for (j = 0;j < numparameters;j++) - Con_Printf(" %s", parameter[j]); - Con_Print("\n"); + if (developer.integer >= 2) + { + Con_Printf("%s %i: ", shadername, passnumber); + for (j = 0;j < numparameters;j++) + Con_Printf(" %s", parameter[j]); + Con_Print("\n"); + } if (passnumber == 0 && numparameters >= 1) { if (!strcasecmp(parameter[0], "blendfunc")) @@ -3704,10 +3707,13 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l) } if (i == 0 && !strcasecmp(com_token, "}")) break; - Con_Printf("%s: ", shadername); - for (j = 0;j < numparameters;j++) - Con_Printf(" %s", parameter[j]); - Con_Print("\n"); + if (developer.integer >= 2) + { + Con_Printf("%s: ", shadername); + for (j = 0;j < numparameters;j++) + Con_Printf(" %s", parameter[j]); + Con_Print("\n"); + } if (numparameters < 1) continue; if (!strcasecmp(parameter[0], "surfaceparm") && numparameters >= 2) -- 2.39.2