From a2b6b4515defa63da2f6fd24e27dafdbd978ec08 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 6 Mar 2020 22:06:13 -0500 Subject: [PATCH] CPlayer: Make use of unused CCollidableAABox in ProcessInput() GM8E v0 makes use of the temporary collidable AA box. This amends the code to make use of it. --- Runtime/World/CPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/World/CPlayer.cpp b/Runtime/World/CPlayer.cpp index 9dc483509..f1f2d5c05 100644 --- a/Runtime/World/CPlayer.cpp +++ b/Runtime/World/CPlayer.cpp @@ -1698,7 +1698,7 @@ void CPlayer::ProcessInput(const CFinalInput& input, CStateManager& mgr) { rstl::reserved_vector nearList; mgr.BuildColliderList(nearList, *this, expandedBounds); std::optional nonIntVec = - CGameCollision::FindNonIntersectingVector(mgr, cache, *this, *prim, nearList); + CGameCollision::FindNonIntersectingVector(mgr, cache, *this, tmpBox, nearList); if (nonIntVec) { x4a0_failsafeTest->Reset(); SetTranslation(GetTranslation() + *nonIntVec);