mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 19:46:50 +00:00
Prevented display of an ambush alert...
...when the ambush is not visible. (Fix for bug #14599.)
This commit is contained in:
parent
dd8ab84de0
commit
90bcb5a9df
@ -2281,7 +2281,7 @@ size_t move_unit(move_unit_spectator *move_spectator,
|
||||
bool redraw = false;
|
||||
|
||||
// Show messages on the screen here
|
||||
if(discovered_unit) {
|
||||
if (discovered_unit && !disp.fogged(steps.back())) {
|
||||
if (ambushed_string.empty())
|
||||
ambushed_string = _("Ambushed!");
|
||||
// We've been ambushed, display an appropriate message
|
||||
|
Loading…
x
Reference in New Issue
Block a user