CGrenadeLauncher: Remove redundant CColor

This commit is contained in:
Luke Street 2020-03-30 23:39:41 -04:00
parent 782a13c0a4
commit f0927d937a
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,8 @@ std::optional<zeus::CAABox> CGrenadeLauncher::GetTouchBounds() const {
void CGrenadeLauncher::PreRender(CStateManager& mgr, const zeus::CFrustum& frustum) {
if (x3f4_color3.a() == 1.f) {
xb4_drawFlags = CModelFlags{2, 0, 3, zeus::CColor{x3f4_color3, 1.f}};
// Original code redundantly sets a() = 1.f
xb4_drawFlags = CModelFlags{2, 0, 3, x3f4_color3};
} else {
xb4_drawFlags = CModelFlags{5, 0, 3, x3f4_color3};
}