mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 22:21:36 +00:00
fixed bug where damage labels would float above battles...
...taking place in fog of war
This commit is contained in:
parent
9b42139479
commit
892294873a
@ -1901,7 +1901,7 @@ void display::move_unit(const std::vector<gamemap::location>& path, unit& u)
|
||||
void display::float_label(const gamemap::location& loc, const std::string& text,
|
||||
int red, int green, int blue)
|
||||
{
|
||||
if(preferences::show_floating_labels() == false) {
|
||||
if(preferences::show_floating_labels() == false || fogged(loc.x,loc.y)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user