Skip to content

Commit

Permalink
Updated naming in TileInspector for consistent use of oreDeposit over…
Browse files Browse the repository at this point in the history
… mine
  • Loading branch information
oscar139 committed Mar 11, 2025
1 parent 8fe9369 commit 16680c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions appOPHD/UI/TileInspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ void TileInspector::update()
position.y += lineSpacing;
drawLabelAndValue(position, "Terrain: ", terrainTypeStringTable.at(mTile->index()));

const auto* mine = mTile->oreDeposit();
const auto* oreDeposit = mTile->oreDeposit();

position.y += lineSpacing + sectionSpacing;
drawLabelAndValue(position, "Has Mine: ", (mine ? "Yes" : "No"));
drawLabelAndValue(position, "Has Ore Deposit: ", (oreDeposit ? "Yes" : "No"));

if (mine)
if (oreDeposit)
{
position.y += lineSpacing;
drawLabelAndValue(position, "Active: ", (mine->active() ? "Yes" : "No"));
drawLabelAndValue(position, "Active: ", (oreDeposit->active() ? "Yes" : "No"));

position.y += lineSpacing;
drawLabelAndValue(position, "Production Rate: ", oreDepositYieldEnumToString(mTile->oreDeposit()->yield()));
drawLabelAndValue(position, "Yield: ", oreDepositYieldEnumToString(mTile->oreDeposit()->yield()));
}
}

Expand Down

0 comments on commit 16680c0

Please sign in to comment.