mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 20:17:59 +00:00
Fix team-coloring on side panel.
This commit is contained in:
parent
a929aaa77a
commit
df2e32dc76
@ -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…
x
Reference in New Issue
Block a user