CColorElement: Fixes from decomp

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

View File

@ -72,10 +72,11 @@ bool CCEFastConstant::GetValue([[maybe_unused]] int frame, zeus::CColor& valOut)
bool CCETimeChain::GetValue(int frame, zeus::CColor& valOut) const {
int v;
xc_swFrame->GetValue(frame, v);
if (frame >= v)
return x8_b->GetValue(frame, valOut);
else
if (frame < v) {
return x4_a->GetValue(frame, valOut);
} else {
return x8_b->GetValue(frame - v, valOut);
}
}
bool CCEFadeEnd::GetValue(int frame, zeus::CColor& valOut) const {