- Colorize missing texture messages.

SVN r3193 (trunk)
This commit is contained in:
Randy Heit 2011-05-08 00:35:17 +00:00
parent 6c70afe0a7
commit 37aab20cb3

View file

@ -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);
}
}