mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 20:19:49 +00:00
parent
97ca22e94b
commit
ce75665ae5
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user