Simplify color creation case in unit_frame::redraw

This commit is contained in:
Charles Dang 2015-12-12 14:39:30 +11:00
parent 5813eb0aad
commit 43709fe49d

View file

@ -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;