planning mode: Fix game hanging during enemies attack

Fixes #5302, planning mode now no longer tries to set the
defendings unit animation to "standing" during an attack when
there were planned moves for the defender.
This commit is contained in:
gfgtdf 2023-03-23 16:52:16 +01:00
parent 3c3fd51098
commit 0eae27a474

View file

@ -151,7 +151,8 @@ bool manager::can_modify_game_state() const
|| resources::gameboard == nullptr
|| executing_actions_
|| resources::gameboard->is_observer()
|| resources::controller->is_linger_mode())
|| resources::controller->is_linger_mode()
|| !synced_context::is_unsynced())
{
return false;
}