mirror of https://github.com/AxioDL/metaforce.git
CScriptActor: Set noZTest flags appropriately
This commit is contained in:
parent
cc79ba3d09
commit
1e0bdce5a3
|
@ -150,8 +150,10 @@ void CScriptActor::PreRender(CStateManager& mgr, const zeus::CFrustum& frustum)
|
||||||
if (x2e2_24_noThermalHotZ && xe6_27_thermalVisorFlags == 2) {
|
if (x2e2_24_noThermalHotZ && xe6_27_thermalVisorFlags == 2) {
|
||||||
if (mgr.GetPlayerState()->GetActiveVisor(mgr) == CPlayerState::EPlayerVisor::Thermal) {
|
if (mgr.GetPlayerState()->GetActiveVisor(mgr) == CPlayerState::EPlayerVisor::Thermal) {
|
||||||
xb4_drawFlags.x2_flags &= ~3; // Disable Z test/update
|
xb4_drawFlags.x2_flags &= ~3; // Disable Z test/update
|
||||||
|
xb4_drawFlags.m_noZTest = true;
|
||||||
} else {
|
} else {
|
||||||
xb4_drawFlags.x2_flags |= 3; // Enable Z test/update
|
xb4_drawFlags.x2_flags |= 3; // Enable Z test/update
|
||||||
|
xb4_drawFlags.m_noZTest = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue