Merge pull request #79 from lioncash/trunc

CAuiEnergyBarT01: Prevent truncation within DownloadBarCoordFunc
This commit is contained in:
Phillip Stephens 2019-09-21 05:44:27 -07:00 committed by GitHub
commit a89852fc46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ CAuiEnergyBarT01::CAuiEnergyBarT01(const CGuiWidgetParms& parms, CSimplePool* sp
}
std::pair<zeus::CVector3f, zeus::CVector3f> CAuiEnergyBarT01::DownloadBarCoordFunc(float t) {
float x = 12.5 * t - 6.25;
const float x = 12.5f * t - 6.25f;
return {zeus::CVector3f{x, 0.f, -0.2f}, zeus::CVector3f{x, 0.f, 0.2f}};
}