From d78a76febe97e96e1172c4b12dd9ff4ff8dddf4d Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sat, 18 Nov 2017 01:19:56 -0800 Subject: [PATCH] Fix default spawn handling --- Runtime/CStateManager.cpp | 4 ++-- specter | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/CStateManager.cpp b/Runtime/CStateManager.cpp index f0f163396..9c7a06df3 100644 --- a/Runtime/CStateManager.cpp +++ b/Runtime/CStateManager.cpp @@ -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); } diff --git a/specter b/specter index 3e04e86ae..883a7498e 160000 --- a/specter +++ b/specter @@ -1 +1 @@ -Subproject commit 3e04e86ae9735d69de5ed5889471e8e45669e3ea +Subproject commit 883a7498e1124c12fe65040f76d4079591d7ad60