Simplify color creation case in unit_frame::redraw
This commit is contained in:
parent
5813eb0aad
commit
43709fe49d
1 changed files with 1 additions and 5 deletions
|
@ -650,11 +650,7 @@ void unit_frame::redraw(const int frame_time,bool on_start_time,bool in_scope_of
|
|||
}
|
||||
if(!current_data.text.empty() ) {
|
||||
game_display::get_singleton()->float_label(src, current_data.text,
|
||||
create_color(
|
||||
(current_data.text_color & 0x00FF0000) >> 16,
|
||||
(current_data.text_color & 0x0000FF00) >> 8,
|
||||
(current_data.text_color & 0x000000FF) >> 0)
|
||||
);
|
||||
int_to_color(current_data.text_color));
|
||||
}
|
||||
}
|
||||
image::locator image_loc;
|
||||
|
|
Loading…
Add table
Reference in a new issue