Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Oct 27, 2024
1 parent 636a28f commit 20b1c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,15 +427,15 @@ static bool displayCompObj(DROID *psDroid, bool bButton, const glm::mat4& modelM
SDWORD iConnector;
PROPULSION_STATS *psPropStats;
SDWORD pieFlag, iPieData;
SDWORD shieldPieFlag, iShieldPieData;
SDWORD shieldPieFlag = 0, iShieldPieData = 0;
PIELIGHT brightness;
UDWORD colour;
size_t i = 0;
bool didDrawSomething = false;

if (!bButton && psDroid->shieldPoints > 0) {
double factor = static_cast<double>(psDroid->shieldPoints) / droidGetMaxShieldPoints(psDroid);
iShieldPieData = std::round(255.0f * factor);
iShieldPieData = static_cast<SDWORD>(std::round(255.0f * factor));
shieldPieFlag = pie_FORCELIGHT | pie_TRANSLUCENT | pie_SHIELD;
}

Expand Down

0 comments on commit 20b1c68

Please sign in to comment.