mirror of https://github.com/AxioDL/metaforce.git
Decomp: Fix adding new ripples not restarting the time
This commit is contained in:
parent
d23df787f9
commit
a9a43c1a20
|
@ -38,7 +38,8 @@ void CRippleManager::AddRipple(const CRipple& ripple) {
|
||||||
|
|
||||||
if (oldestRipple != x4_ripples.end()) {
|
if (oldestRipple != x4_ripples.end()) {
|
||||||
*oldestRipple = ripple;
|
*oldestRipple = ripple;
|
||||||
x0_maxTimeFalloff = std::max(x0_maxTimeFalloff, ripple.GetTimeFalloff());
|
oldestRipple->SetTime(0.f);
|
||||||
|
SetMaxTimeFalloff(std::max(GetMaxTimeFalloff(), ripple.GetTimeFalloff()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue