CTryclops: Fix incorrect transform being passed to Teleport() in LaunchPlayer()

GM8E v0 makes use of tmpXf here with Teleport(), not the passed in
transform.
This commit is contained in:
Lioncash 2020-04-07 06:58:39 -04:00
parent 40f184bfac
commit cf7d5be6c1
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ void CTryclops::LaunchPlayer(CStateManager& mgr, const zeus::CTransform& xf, flo
player.Stop(); player.Stop();
zeus::CTransform tmpXf = (xf * x64c_); zeus::CTransform tmpXf = (xf * x64c_);
tmpXf.origin += zeus::CVector3f(0.f, 0.f, -0.5f); tmpXf.origin += zeus::CVector3f(0.f, 0.f, -0.5f);
player.Teleport(xf, mgr, false); player.Teleport(tmpXf, mgr, false);
player.ApplyImpulseWR(f1 * (player.GetMass() * xf.basis[1].normalized()), zeus::CAxisAngle()); player.ApplyImpulseWR(f1 * (player.GetMass() * xf.basis[1].normalized()), zeus::CAxisAngle());
player.SetMoveState(CPlayer::EPlayerMovementState::ApplyJump, mgr); player.SetMoveState(CPlayer::EPlayerMovementState::ApplyJump, mgr);
player.AddMaterial(EMaterialTypes::Solid, mgr); player.AddMaterial(EMaterialTypes::Solid, mgr);