mirror of https://github.com/AxioDL/metaforce.git
Additional reference-constructors for TCastToPtr
This commit is contained in:
parent
e2c671e9b4
commit
7e720266d7
|
@ -529,12 +529,12 @@ bool CStateManager::ApplyLocalDamage(const zeus::CVector3f& vec1, const zeus::CV
|
|||
|
||||
float f30 = dt;
|
||||
|
||||
CPlayer* player = TCastToPtr<CPlayer>(&actor);
|
||||
CAi* ai = TCastToPtr<CAi>(&actor);
|
||||
CPlayer* player = TCastToPtr<CPlayer>(actor);
|
||||
CAi* ai = TCastToPtr<CAi>(actor);
|
||||
#if 0
|
||||
CDestroyableRock* dRock = nullptr;
|
||||
if (!ai)
|
||||
TCastToPtr<CDestroyableRock>(&actor);
|
||||
TCastToPtr<CDestroyableRock>(actor);
|
||||
#endif
|
||||
|
||||
if (player)
|
||||
|
|
|
@ -42,7 +42,7 @@ rstl::optional_object<zeus::CAABox> CScriptCameraPitchVolume::GetTouchBounds() c
|
|||
|
||||
void CScriptCameraPitchVolume::Touch(CActor& act, CStateManager& mgr)
|
||||
{
|
||||
CPlayer* pl = TCastToPtr<CPlayer>(&act);
|
||||
CPlayer* pl = TCastToPtr<CPlayer>(act);
|
||||
if (!pl)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue