Browse Source

Fix for wrong merge :(

krs 2 years ago
parent
commit
51ad49532b
1 changed files with 0 additions and 6 deletions
  1. 0 6
      client/battle/BattleFieldController.cpp

+ 0 - 6
client/battle/BattleFieldController.cpp

@@ -175,11 +175,6 @@ void BattleFieldController::redrawBackgroundWithHexes()
 	if(activeStack)
 	if(activeStack)
 		occupyableHexes = owner.curInt->cb->battleGetAvailableHexes(activeStack, true, true, &attackableHexes);
 		occupyableHexes = owner.curInt->cb->battleGetAvailableHexes(activeStack, true, true, &attackableHexes);
 
 
-	auto accessibility = owner.curInt->cb->getAccesibility();
-
-	for(int i = 0; i < accessibility.size(); i++)
-		stackCountOutsideHexes[i] = (accessibility[i] == EAccessibility::ACCESSIBLE);
-
 	// prepare background graphic with hexes and shaded hexes
 	// prepare background graphic with hexes and shaded hexes
 	backgroundWithHexes->draw(background, Point(0,0));
 	backgroundWithHexes->draw(background, Point(0,0));
 	owner.obstacleController->showAbsoluteObstacles(*backgroundWithHexes);
 	owner.obstacleController->showAbsoluteObstacles(*backgroundWithHexes);
@@ -348,7 +343,6 @@ std::set<BattleHex> BattleFieldController::getHighlightedHexesMovementTarget()
 
 
 void BattleFieldController::showHighlightedHexes(Canvas & canvas)
 void BattleFieldController::showHighlightedHexes(Canvas & canvas)
 {
 {
-	//std::set<BattleHex> hoveredStack = getHighlightedHexesForActiveStack();
 	std::set<BattleHex> hoveredStackHexes = getMovementRangeForHoveredStack();
 	std::set<BattleHex> hoveredStackHexes = getMovementRangeForHoveredStack();
 	std::set<BattleHex> hoveredSpellHexes = getHighlightedHexesForSpellRange();
 	std::set<BattleHex> hoveredSpellHexes = getHighlightedHexesForSpellRange();
 	std::set<BattleHex> hoveredMoveHexes  = getHighlightedHexesMovementTarget();
 	std::set<BattleHex> hoveredMoveHexes  = getHighlightedHexesMovementTarget();