mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 01:47:42 +00:00
Fix default spawn handling
This commit is contained in:
@@ -2202,10 +2202,10 @@ void CStateManager::InitializeState(CAssetId mlvlId, TAreaId aid, CAssetId mreaI
|
||||
if (sp && sp->x30_24_active && sp->FirstSpawn())
|
||||
{
|
||||
const zeus::CTransform& xf = sp->GetTransform();
|
||||
zeus::CVector3f lookVec{xf.basis[0][1], xf.basis[1][1], xf.basis[2][1]};
|
||||
zeus::CVector3f lookVec = xf.frontVector();
|
||||
if (lookVec.canBeNormalized())
|
||||
{
|
||||
auto lookXf = zeus::lookAt(xf.origin, lookVec);
|
||||
auto lookXf = zeus::lookAt(xf.origin, xf.origin + lookVec);
|
||||
x84c_player->Teleport(lookXf, *this, true);
|
||||
}
|
||||
|
||||
|
||||
2
specter
2
specter
Submodule specter updated: 3e04e86ae9...883a7498e1
Reference in New Issue
Block a user