mirror of https://github.com/AxioDL/metaforce.git
Decomp Fixes: CVisorFlare::Render
This commit is contained in:
parent
c55289143f
commit
997cf5e0df
|
@ -83,19 +83,20 @@ void CVisorFlare::Render(const zeus::CVector3f& pos, const CStateManager& mgr) c
|
||||||
}
|
}
|
||||||
SCOPED_GRAPHICS_DEBUG_GROUP("CVisorFlare::Render", zeus::skGrey);
|
SCOPED_GRAPHICS_DEBUG_GROUP("CVisorFlare::Render", zeus::skGrey);
|
||||||
|
|
||||||
u32 type;
|
switch (mgr.GetPlayerState()->GetActiveVisor(mgr)) {
|
||||||
const auto visor = mgr.GetPlayerState()->GetActiveVisor(mgr);
|
case CPlayerState::EPlayerVisor::Combat:
|
||||||
if (visor == CPlayerState::EPlayerVisor::Thermal) {
|
if (x30_w2 != 0)
|
||||||
type = x2c_w1;
|
return;
|
||||||
} else if (visor == CPlayerState::EPlayerVisor::XRay) {
|
break;
|
||||||
return;
|
case CPlayerState::EPlayerVisor::Thermal:
|
||||||
} else {
|
if (x2c_w1 != 0)
|
||||||
type = x30_w2;
|
return;
|
||||||
}
|
break;
|
||||||
if (type != 0) {
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CGraphics::DisableAllLights();
|
CGraphics::DisableAllLights();
|
||||||
g_Renderer->SetDepthReadWrite(false, false);
|
g_Renderer->SetDepthReadWrite(false, false);
|
||||||
const CGameCamera* cam = mgr.GetCameraManager()->GetCurrentCamera(mgr);
|
const CGameCamera* cam = mgr.GetCameraManager()->GetCurrentCamera(mgr);
|
||||||
|
|
Loading…
Reference in New Issue