fixed bug where damage labels would float above battles...

...taking place in fog of war
This commit is contained in:
Dave White 2004-04-17 14:43:23 +00:00
parent 9b42139479
commit 892294873a

View file

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