Sidebar: Add jamming to the vision tooltip.

See #3327.
This commit is contained in:
josteph 2018-07-07 17:33:37 +00:00
parent 97ca22e94b
commit ce75665ae5

View file

@ -628,7 +628,12 @@ static config unit_vision(const unit* u)
std::ostringstream str, tooltip;
if (u->vision() != u->total_movement()) {
str << _("vision:") << ' ' << u->vision();
tooltip << _("vision:") << ' ' << u->vision();
tooltip << _("vision:") << ' ' << u->vision() << '\n';
}
if (u->jamming() != 0) {
if (str.tellp() == 0)
str << _("jamming:") << ' ' << u->jamming();
tooltip << _("jamming:") << ' ' << u->jamming() << '\n';
}
return text_report(str.str(), tooltip.str());
}