Fix [hide_unit] on animationless unit moves
The was_hidden_ variable wasn't set in this particular codepath, causing the unit to be unhidden at the end of the move.
This commit is contained in:
parent
995a093921
commit
2fb462aa47
1 changed files with 1 additions and 0 deletions
|
@ -315,6 +315,7 @@ void unit_mover::proceed_to(unit& u, size_t path_index, bool update, bool wait)
|
|||
// If no animation then hide unit until end of movement
|
||||
if (!animate_)
|
||||
{
|
||||
was_hidden_ = u.get_hidden();
|
||||
u.set_hidden(true);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue