Fix CActor & CScriptDebris CModelFlags

This commit is contained in:
Luke Street 2022-03-10 03:41:43 -05:00
parent 8096ffc29a
commit ddc34e3a0c
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ protected:
std::unique_ptr<CSimpleShadow> x94_simpleShadow; std::unique_ptr<CSimpleShadow> x94_simpleShadow;
TLockedToken<CScannableObjectInfo> x98_scanObjectInfo; TLockedToken<CScannableObjectInfo> x98_scanObjectInfo;
zeus::CAABox x9c_renderBounds; zeus::CAABox x9c_renderBounds;
CModelFlags xb4_drawFlags; CModelFlags xb4_drawFlags{0, 0, 3, zeus::skWhite};
float xbc_time = 0.f; float xbc_time = 0.f;
float xc0_pitchBend = 0.f; float xc0_pitchBend = 0.f;
TUniqueId xc4_fluidId = kInvalidUniqueId; TUniqueId xc4_fluidId = kInvalidUniqueId;

View File

@ -396,7 +396,7 @@ void CScriptDebris::PreRender(CStateManager& mgr, const zeus::CFrustum& frustum)
t = 0.f; t = 0.f;
} }
xb4_drawFlags = CModelFlags(5, 0, 3, zeus::CColor::lerp(zeus::skWhite, x268_endsColor, t)); xb4_drawFlags = CModelFlags(5, 0, t == 1.f ? 3 : 1, zeus::CColor::lerp(zeus::skWhite, x268_endsColor, t));
} }
void CScriptDebris::Render(CStateManager& mgr) { CPhysicsActor::Render(mgr); } void CScriptDebris::Render(CStateManager& mgr) { CPhysicsActor::Render(mgr); }