From 37aab20cb3eb5c8d1e4af0ee01314bb642c037e3 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 8 May 2011 00:35:17 +0000 Subject: [PATCH] - Colorize missing texture messages. SVN r3193 (trunk) --- src/p_setup.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 7d8b9df26..e9f2cceda 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -584,7 +584,9 @@ static void SetTexture (side_t *side, int position, const char *name8, FMissingT { if (lines[i].sidedef[j] == side) { - Printf("Unknown %s texture '%s' on %s side of linedef %d\n", + Printf(TEXTCOLOR_RED"Unknown %s texture '" + TEXTCOLOR_ORANGE "%s" TEXTCOLOR_RED + "' on %s side of linedef %d\n", positionnames[position], name, sidenames[j], i); } } @@ -615,7 +617,9 @@ void SetTexture (sector_t *sector, int index, int position, const char *name8, F { if (++track[name].Count <= MISSING_TEXTURE_WARN_LIMIT) { - Printf("Unknown %s texture '%s' in sector %d\n", + Printf(TEXTCOLOR_RED"Unknown %s texture '" + TEXTCOLOR_ORANGE "%s" TEXTCOLOR_RED + "' in sector %d\n", positionnames[position], name, index); } texture = TexMan.GetDefaultTexture(); @@ -641,7 +645,9 @@ static void SummarizeMissingTextures(const FMissingTextureTracker &missing) { if (pair->Value.Count > MISSING_TEXTURE_WARN_LIMIT) { - Printf("Missing texture '%s' is used %d more times\n", + Printf(TEXTCOLOR_RED "Missing texture '" + TEXTCOLOR_ORANGE "%s" TEXTCOLOR_RED + "' is used %d more times\n", pair->Key.GetChars(), pair->Value.Count - MISSING_TEXTURE_WARN_LIMIT); } }