diff --git a/src/xrGame/Actor.cpp b/src/xrGame/Actor.cpp index 88ed67c87a8..056cbaec41c 100644 --- a/src/xrGame/Actor.cpp +++ b/src/xrGame/Actor.cpp @@ -1353,6 +1353,7 @@ void CActor::shedule_Update(u32 DT) //------------------------------------------------ { g_cl_CheckControls(mstate_wishful, NET_SavedAccel, NET_Jump, dt); + m_firstPersonBodyXform = XFORM(); { /* if (mstate_real & mcJump) @@ -1642,7 +1643,6 @@ void CActor::RenderFirstPersonBody(u32 context_id, IRenderable* root) } IKinematics* kinematics = m_firstPersonBody->dcast_PKinematics(); - m_firstPersonBodyXform = XFORM(); // Add body to render GEnv.Render->add_Visual(context_id, root, m_firstPersonBody, m_firstPersonBodyXform); diff --git a/src/xrGame/Actor.h b/src/xrGame/Actor.h index 15bc7ffdeb4..39fb87da8e6 100644 --- a/src/xrGame/Actor.h +++ b/src/xrGame/Actor.h @@ -111,7 +111,7 @@ class CActor : public CEntityAlive, xr_unordered_map m_firstPersonBodyBonesToIgnoreAnims; u32 m_timeOfDeath{}; u32 m_fpDeathCamOfffsetTime{}; - Fmatrix m_firstPersonBodyXform{}; + Fmatrix m_firstPersonBodyXform{Fidentity}; Fmatrix m_firstPersonCameraXform{}; Lock render_lock{};