From 54691cf035b0639026d7e90e7194d29bf280724c Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 19 Apr 2021 21:52:14 -0700 Subject: [PATCH] Fix platform riders not being dragged when the platform is rotated by CScriptActorRotate --- Runtime/World/CScriptActorRotate.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Runtime/World/CScriptActorRotate.cpp b/Runtime/World/CScriptActorRotate.cpp index b465461e2..e674ea6db 100644 --- a/Runtime/World/CScriptActorRotate.cpp +++ b/Runtime/World/CScriptActorRotate.cpp @@ -79,9 +79,8 @@ void CScriptActorRotate::UpdatePlatformRiders(std::vector& riders, CScr for (SRiders& rider : riders) { if (const TCastToPtr act = mgr.ObjectById(rider.x0_uid)) { zeus::CTransform& riderXf = rider.x8_transform; - act->SetTransform(rider.x8_transform); + act->SetTransform(xf * rider.x8_transform); act->SetTranslation(act->GetTranslation() + plat.GetTranslation()); - if (!x58_24_updateRotation) { riderXf = {act->GetTransform().basis, act->GetTranslation() - plat.GetTranslation()};