From a9a43c1a20908d52688796771348d751ad913b2a Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Thu, 20 Oct 2022 03:50:24 +0300 Subject: [PATCH] Decomp: Fix adding new ripples not restarting the time --- Runtime/World/CRippleManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/World/CRippleManager.cpp b/Runtime/World/CRippleManager.cpp index 76bfd4304..3f7498003 100644 --- a/Runtime/World/CRippleManager.cpp +++ b/Runtime/World/CRippleManager.cpp @@ -38,7 +38,8 @@ void CRippleManager::AddRipple(const CRipple& ripple) { if (oldestRipple != x4_ripples.end()) { *oldestRipple = ripple; - x0_maxTimeFalloff = std::max(x0_maxTimeFalloff, ripple.GetTimeFalloff()); + oldestRipple->SetTime(0.f); + SetMaxTimeFalloff(std::max(GetMaxTimeFalloff(), ripple.GetTimeFalloff())); } }