|
@@ -518,7 +518,7 @@ bool AdventureMapShortcuts::optionCanVisitObject()
|
|
|
auto * hero = LOCPLINT->localState->getCurrentHero();
|
|
|
auto objects = LOCPLINT->cb->getVisitableObjs(hero->visitablePos());
|
|
|
|
|
|
- assert(vstd::contains(objects,hero));
|
|
|
+ //assert(vstd::contains(objects,hero));
|
|
|
return objects.size() > 1; // there is object other than our hero
|
|
|
}
|
|
|
|
|
@@ -553,26 +553,25 @@ bool AdventureMapShortcuts::optionSpellcasting()
|
|
|
|
|
|
bool AdventureMapShortcuts::optionInMapView()
|
|
|
{
|
|
|
- return state == EAdventureState::MAKING_TURN || state == EAdventureState::OTHER_HUMAN_PLAYER_TURN;
|
|
|
+ return state == EAdventureState::MAKING_TURN;
|
|
|
}
|
|
|
|
|
|
bool AdventureMapShortcuts::optionInWorldView()
|
|
|
{
|
|
|
- return state == EAdventureState::WORLD_VIEW || state == EAdventureState::OTHER_HUMAN_PLAYER_TURN;
|
|
|
+ return state == EAdventureState::WORLD_VIEW;
|
|
|
}
|
|
|
|
|
|
bool AdventureMapShortcuts::optionSidePanelActive()
|
|
|
{
|
|
|
-return state == EAdventureState::MAKING_TURN || state == EAdventureState::WORLD_VIEW || state == EAdventureState::OTHER_HUMAN_PLAYER_TURN;
|
|
|
+return state == EAdventureState::MAKING_TURN || state == EAdventureState::WORLD_VIEW;
|
|
|
}
|
|
|
|
|
|
bool AdventureMapShortcuts::optionMapScrollingActive()
|
|
|
{
|
|
|
- return state == EAdventureState::MAKING_TURN || state == EAdventureState::WORLD_VIEW || state == EAdventureState::OTHER_HUMAN_PLAYER_TURN;
|
|
|
+ return state == EAdventureState::MAKING_TURN || state == EAdventureState::WORLD_VIEW;
|
|
|
}
|
|
|
|
|
|
bool AdventureMapShortcuts::optionMapViewActive()
|
|
|
{
|
|
|
- return state == EAdventureState::MAKING_TURN || state == EAdventureState::WORLD_VIEW || state == EAdventureState::CASTING_SPELL
|
|
|
- || state == EAdventureState::OTHER_HUMAN_PLAYER_TURN;
|
|
|
+ return state == EAdventureState::MAKING_TURN || state == EAdventureState::WORLD_VIEW || state == EAdventureState::CASTING_SPELL;
|
|
|
}
|