2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-06-05 16:33:28 +00:00

CGrenadeLauncher: Remove redundant CColor

This commit is contained in:
Luke Street 2020-03-30 23:39:41 -04:00
parent 782a13c0a4
commit f0927d937a

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};
}