1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-13 22:06:58 +02:00

Fix some shortcuts not active during enemy turn in multiplayer

This commit is contained in:
Ivan Savenko 2024-07-27 18:12:08 +00:00
parent 74fea5109b
commit 87b5f955d1

View File

@ -553,12 +553,12 @@ bool AdventureMapShortcuts::optionSpellcasting()
bool AdventureMapShortcuts::optionInMapView()
{
return state == EAdventureState::MAKING_TURN;
return state == EAdventureState::MAKING_TURN || state == EAdventureState::OTHER_HUMAN_PLAYER_TURN;
}
bool AdventureMapShortcuts::optionInWorldView()
{
return state == EAdventureState::WORLD_VIEW;
return state == EAdventureState::WORLD_VIEW || state == EAdventureState::OTHER_HUMAN_PLAYER_TURN;
}
bool AdventureMapShortcuts::optionSidePanelActive()