CScriptActor: Set noZTest flags appropriately

This commit is contained in:
Luke Street 2020-12-18 06:06:31 -05:00
parent cc79ba3d09
commit 1e0bdce5a3
1 changed files with 2 additions and 0 deletions

View File

@ -150,8 +150,10 @@ void CScriptActor::PreRender(CStateManager& mgr, const zeus::CFrustum& frustum)
if (x2e2_24_noThermalHotZ && xe6_27_thermalVisorFlags == 2) {
if (mgr.GetPlayerState()->GetActiveVisor(mgr) == CPlayerState::EPlayerVisor::Thermal) {
xb4_drawFlags.x2_flags &= ~3; // Disable Z test/update
xb4_drawFlags.m_noZTest = true;
} else {
xb4_drawFlags.x2_flags |= 3; // Enable Z test/update
xb4_drawFlags.m_noZTest = false;
}
}