From c2517d0d993671f26707c0d766da4749eada0b37 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 30 Sep 2014 04:16:06 +0000 Subject: [PATCH] Suppress tile and sound remapping debug output in debug builds when not using -condebug git-svn-id: https://svn.eduke32.com/eduke32@4630 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/namesdyn.c | 2 +- polymer/eduke32/source/soundsdyn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/namesdyn.c b/polymer/eduke32/source/namesdyn.c index 554171c91..6b0999737 100644 --- a/polymer/eduke32/source/namesdyn.c +++ b/polymer/eduke32/source/namesdyn.c @@ -1539,7 +1539,7 @@ void G_ProcessDynamicTileMapping(const char *szLabel, int32_t lValue) { struct dynitem *di = &g_dynTileList[i]; #ifdef DEBUGGINGAIDS - if (di->staticval != lValue) + if (g_scriptDebug && di->staticval != lValue) OSD_Printf("REMAP %s (%d) --> %d\n", di->str, di->staticval, lValue); #endif *di->dynvalptr = lValue; diff --git a/polymer/eduke32/source/soundsdyn.c b/polymer/eduke32/source/soundsdyn.c index 39a2b077a..c1319b55f 100644 --- a/polymer/eduke32/source/soundsdyn.c +++ b/polymer/eduke32/source/soundsdyn.c @@ -858,7 +858,7 @@ void G_ProcessDynamicSoundMapping(const char *szLabel, int32_t lValue) { struct dynitem *di = &g_dynSoundList[i]; #ifdef DEBUGGINGAIDS - if (di->staticval != lValue) + if (g_scriptDebug && di->staticval != lValue) OSD_Printf("REMAP %s (%d) --> %d\n", di->str, di->staticval, lValue); #endif *di->dynvalptr = lValue;