Prevented display of an ambush alert...

...when the ambush is not visible. (Fix for bug #14599.)
This commit is contained in:
Guillaume Melquiond 2009-11-12 15:01:38 +00:00
parent dd8ab84de0
commit 90bcb5a9df

View File

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