1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-27 00:41:08 +02:00

Renamed settings option to reflect that same option is used for both ranges.

This commit is contained in:
krs
2023-06-23 19:50:39 +03:00
parent b6ab1e1505
commit afe0146021
8 changed files with 22 additions and 22 deletions

View File

@ -452,7 +452,7 @@ std::vector<BattleHex> BattleFieldController::getRangeHexes(BattleHex sourceHex,
{
std::vector<BattleHex> rangeHexes; // used for return
if (!settings["battle"]["rangedFullDamageLimitHighlightOnHover"].Bool() && !GH.isKeyboardShiftDown())
if (!settings["battle"]["rangeLimitHighlightOnHover"].Bool() && !GH.isKeyboardShiftDown())
return rangeHexes;
// get only battlefield hexes that are within the given distance
@ -509,7 +509,7 @@ std::vector<std::vector<BattleHex::EDir>> BattleFieldController::getOutsideNeigh
std::vector<BattleHex::EDir> outsideNeighbourDirections;
// for each neighbour add to output only the valid ones and only that are not found in rangedFullDamageHexes
// for each neighbour add to output only the valid ones and only that are not found in range Hexes
for(auto direction = 0; direction < 6; direction++)
{
if(!neighbouringTiles[direction].isAvailable())