Fix team-coloring on side panel.

This commit is contained in:
Dominic Bolin 2006-07-18 21:30:15 +00:00
parent 3f21781c0e
commit d26887753a

View file

@ -309,7 +309,11 @@ Units cannot be killed by poison alone. The poison will not reduce it below 1 HP
return res;
}
case UNIT_IMAGE:
return report("",u->second.absolute_image(),"");
{
const std::vector<Uint32>& old_rgb = u->second.team_rgb_range();
color_range new_rgb = team::get_side_color_range(u->second.side());
return report("",image::locator(u->second.absolute_image(), new_rgb, old_rgb),"");
}
case UNIT_PROFILE:
return report("",u->second.profile(),"");
case TIME_OF_DAY: {