Remove pointless debug output, part of the team color implementation

The output is formatted even when the engine logdomain severity is less
than 'debug', which is bad. It also doesn't really reflect the objects
in question accurately since it uses values from a synthetic palette
that isn't actually used.
This commit is contained in:
Ignacio R. Morelle 2014-11-15 03:25:11 -03:00
parent 262fc819ea
commit 53833dd0c3

View File

@ -345,20 +345,6 @@ namespace game_config
continue;
}
team_rgb_colors.insert(std::make_pair(id,tp));
//if this is being used, output log of palette for artists use.
DBG_NG << "color palette creation:\n";
std::ostringstream str;
str << id << " = ";
for (std::vector<Uint32>::const_iterator r = tp.begin(),
r_end = tp.end(), r_beg = r; r != r_end; ++r)
{
int red = ((*r) & 0x00FF0000) >> 16;
int green = ((*r) & 0x0000FF00) >> 8;
int blue = ((*r) & 0x000000FF);
if (r != r_beg) str << ',';
str << red << ',' << green << ',' << blue;
}
DBG_NG << str.str() << '\n';
}
BOOST_FOREACH(const config &cp, v.child_range("color_palette"))