From 16f79256522d4efefafdee059837c5f3767adf02 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 7 Feb 2020 16:27:53 -0500 Subject: [PATCH] CFireFlea: Set CPathFindSearch's padding to 50.0f within AcceptScriptMsg() v0-00 sets the padding member of CPathFindSearch here to 50.0, not a member variable that's part of the CFireFlea class. --- Runtime/MP1/World/CFireFlea.cpp | 2 +- Runtime/MP1/World/CFireFlea.hpp | 1 - Runtime/World/CPathFindSearch.hpp | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/MP1/World/CFireFlea.cpp b/Runtime/MP1/World/CFireFlea.cpp index 7b27dd088..2c74ac525 100644 --- a/Runtime/MP1/World/CFireFlea.cpp +++ b/Runtime/MP1/World/CFireFlea.cpp @@ -85,7 +85,7 @@ void CFireFlea::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateM x450_bodyController->Activate(mgr); } else if (msg == EScriptObjectMessage::InitializedInArea) { xd8c_pathFind.SetArea(mgr.GetWorld()->GetAreaAlways(GetAreaIdAlways())->GetPostConstructed()->x10bc_pathArea); - xe64_ = 50.f; + xd8c_pathFind.SetPadding(50.0f); } } diff --git a/Runtime/MP1/World/CFireFlea.hpp b/Runtime/MP1/World/CFireFlea.hpp index 50b91a225..cd6a3dc70 100644 --- a/Runtime/MP1/World/CFireFlea.hpp +++ b/Runtime/MP1/World/CFireFlea.hpp @@ -30,7 +30,6 @@ class CFireFlea : public CPatterned { float x568_ = 1.f; float x56c_; rstl::reserved_vector x570_nearList; - float xe64_; zeus::CVector3f xd74_; zeus::CVector3f xd80_targetPos; CPathFindSearch xd8c_pathFind; diff --git a/Runtime/World/CPathFindSearch.hpp b/Runtime/World/CPathFindSearch.hpp index 2248dc122..62adc4133 100644 --- a/Runtime/World/CPathFindSearch.hpp +++ b/Runtime/World/CPathFindSearch.hpp @@ -56,6 +56,7 @@ public: void SetArea(CPFArea* area) { x0_area = area; } float GetCharacterHeight() const { return xd0_chHeight; } void SetCharacterHeight(float h) { xd0_chHeight = h; } + void SetPadding(float padding) { xd8_padding = padding; } float RemainingPathDistance(const zeus::CVector3f& pos) const; void DebugDraw() const; };