Browse Source

Fix some shortcuts not active during enemy turn in multiplayer

Ivan Savenko 1 year ago
parent
commit
87b5f955d1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/adventureMap/AdventureMapShortcuts.cpp

+ 2 - 2
client/adventureMap/AdventureMapShortcuts.cpp

@@ -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()