add a cast to silence a warning...
...with the lifetime of the new accelerated floating damages pointlessly change a "colour" to "color".
This commit is contained in:
parent
4c6ad2ab4a
commit
b2ec106678
1 changed files with 4 additions and 3 deletions
|
@ -2058,9 +2058,10 @@ void display::float_label(const gamemap::location& loc, const std::string& text,
|
|||
return;
|
||||
}
|
||||
|
||||
const SDL_Color colour = {red,green,blue,255};
|
||||
font::add_floating_label(text,font::SIZE_XLARGE,colour,get_location_x(loc)+zoom_/2,get_location_y(loc),
|
||||
0,-2*turbo_speed(),60/turbo_speed(),screen_area(),font::CENTER_ALIGN,NULL,0,font::ANCHOR_LABEL_MAP);
|
||||
const SDL_Color color = {red,green,blue,255};
|
||||
int lifetime = static_cast<int>(60/turbo_speed());
|
||||
font::add_floating_label(text,font::SIZE_XLARGE,color,get_location_x(loc)+zoom_/2,get_location_y(loc),
|
||||
0,-2*turbo_speed(),lifetime,screen_area(),font::CENTER_ALIGN,NULL,0,font::ANCHOR_LABEL_MAP);
|
||||
}
|
||||
|
||||
void display::clear_hex_overlay(const gamemap::location& loc)
|
||||
|
|
Loading…
Add table
Reference in a new issue