From fb1c2b95a2e800995842af92c32f00fba61a32d8 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sun, 23 Aug 2020 20:18:55 -0400 Subject: [PATCH] CPuddleSpore: Fix CalculateBoundingBox Fixes #348 --- Runtime/MP1/World/CPuddleSpore.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Runtime/MP1/World/CPuddleSpore.cpp b/Runtime/MP1/World/CPuddleSpore.cpp index 5716c7c26..28a435a1a 100644 --- a/Runtime/MP1/World/CPuddleSpore.cpp +++ b/Runtime/MP1/World/CPuddleSpore.cpp @@ -46,11 +46,10 @@ CPuddleSpore::CPuddleSpore(TUniqueId uid, std::string_view name, EFlavorType fla } zeus::CAABox CPuddleSpore::CalculateBoundingBox() const { - return { - ((zeus::CVector3f(-x590_halfExtent, -x590_halfExtent, x598_) + x584_bodyOrigin) * 0.5f) + - (GetBaseBoundingBox().min * 0.95f), - ((zeus::CVector3f(x590_halfExtent, x590_halfExtent, (x594_height * x59c_) + x598_) + x584_bodyOrigin) * 0.5f) + - (GetBaseBoundingBox().max * 0.95f)}; + return {(zeus::CVector3f(-x590_halfExtent, -x590_halfExtent, x598_) + x584_bodyOrigin) * 0.05f + + GetBaseBoundingBox().min * 0.95f, + (zeus::CVector3f(x590_halfExtent, x590_halfExtent, x594_height * x59c_ + x598_) + x584_bodyOrigin) * 0.05f + + GetBaseBoundingBox().max * 0.95f}; } void CPuddleSpore::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {