Fix team-coloring on side panel.
This commit is contained in:
parent
3f21781c0e
commit
d26887753a
1 changed files with 5 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue