Fix platform riders not being dragged when the platform is rotated by CScriptActorRotate

This commit is contained in:
Phillip Stephens 2021-04-19 21:52:14 -07:00
parent 83fc649023
commit 54691cf035
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 2 deletions

View File

@ -79,9 +79,8 @@ void CScriptActorRotate::UpdatePlatformRiders(std::vector<SRiders>& riders, CScr
for (SRiders& rider : riders) {
if (const TCastToPtr<CActor> 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()};