From f0927d937aabbc5abe03fdfe2284f143a87a1a31 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 30 Mar 2020 23:39:41 -0400 Subject: [PATCH] CGrenadeLauncher: Remove redundant CColor --- Runtime/MP1/World/CGrenadeLauncher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/MP1/World/CGrenadeLauncher.cpp b/Runtime/MP1/World/CGrenadeLauncher.cpp index 1d16203bd..7273c84a9 100644 --- a/Runtime/MP1/World/CGrenadeLauncher.cpp +++ b/Runtime/MP1/World/CGrenadeLauncher.cpp @@ -127,7 +127,8 @@ std::optional 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}; }