CModVectorElement: Fixes from decomp

This commit is contained in:
Luke Street 2022-10-29 11:05:06 -04:00
parent 67369f075c
commit fc2b09921b
1 changed files with 4 additions and 3 deletions

View File

@ -90,10 +90,11 @@ bool CMVELinearImplosion::GetValue(int frame, zeus::CVector3f& pVel, zeus::CVect
bool CMVETimeChain::GetValue(int frame, zeus::CVector3f& pVel, zeus::CVector3f& pPos) const {
int v;
xc_swFrame->GetValue(frame, v);
if (frame >= v)
return x8_b->GetValue(frame, pVel, pPos);
else
if (frame < v) {
return x4_a->GetValue(frame, pVel, pPos);
} else {
return x8_b->GetValue(frame - v, pVel, pPos);
}
}
CMVEBounce::CMVEBounce(std::unique_ptr<CVectorElement>&& planePoint, std::unique_ptr<CVectorElement>&& planeNormal,