Fix undo recall action leaving behind parts of the sprite that extend beyond the unit's hex (fixes #3325)

The Fire Dragon sprite extends to two hexes away so invalidating only
the adjacent locations wouldn't have been enough.
This commit is contained in:
josteph 2019-02-27 00:18:30 +00:00
parent 2d5ccd2e93
commit fe6fc22839

View file

@ -94,9 +94,10 @@ bool recall_action::undo(int side)
}
current_team.recall_list().add(un);
// invalidate before erasing allow us
// to also do the overlapped hexes
gui.invalidate(recall_loc);
// Invalidate everything, not just recall_loc, in case the sprite
// extends into adjacent hexes (Horseman) or even farther away (Fire
// Dragon)
gui.invalidate_all();
units.erase(recall_loc);
resources::whiteboard->on_kill_unit();
un->anim_comp().clear_haloes();