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:
parent
b57c8abc1a
commit
1a7f9cc8a2
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue