2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +00:00

Finish CScriptPlayerActor

This commit is contained in:
Jack Andersen
2018-05-13 18:38:58 -10:00
parent 9130b9459a
commit 317aa9af25
16 changed files with 498 additions and 59 deletions

View File

@@ -465,10 +465,10 @@ void CStateManager::TouchSky() const
void CStateManager::TouchPlayerActor()
{
if (xf6c_playerActor == kInvalidUniqueId)
if (xf6c_playerActorHead == kInvalidUniqueId)
return;
if (CEntity* ent = ObjectById(xf6c_playerActor))
static_cast<CScriptPlayerActor*>(ent)->TouchModels();
if (CEntity* ent = ObjectById(xf6c_playerActorHead))
static_cast<CScriptPlayerActor*>(ent)->TouchModels(*this);
}
void CStateManager::DrawSpaceWarp(const zeus::CVector3f& v, float strength) const