Decomp: Fix adding new ripples not restarting the time

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-20 03:50:24 +03:00
parent d23df787f9
commit a9a43c1a20
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 2 additions and 1 deletions

View File

@ -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()));
} }
} }