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;
|
float f30 = dt;
|
||||||
|
|
||||||
CPlayer* player = TCastToPtr<CPlayer>(&actor);
|
CPlayer* player = TCastToPtr<CPlayer>(actor);
|
||||||
CAi* ai = TCastToPtr<CAi>(&actor);
|
CAi* ai = TCastToPtr<CAi>(actor);
|
||||||
#if 0
|
#if 0
|
||||||
CDestroyableRock* dRock = nullptr;
|
CDestroyableRock* dRock = nullptr;
|
||||||
if (!ai)
|
if (!ai)
|
||||||
TCastToPtr<CDestroyableRock>(&actor);
|
TCastToPtr<CDestroyableRock>(actor);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (player)
|
if (player)
|
||||||
|
|
|
@ -42,7 +42,7 @@ rstl::optional_object<zeus::CAABox> CScriptCameraPitchVolume::GetTouchBounds() c
|
||||||
|
|
||||||
void CScriptCameraPitchVolume::Touch(CActor& act, CStateManager& mgr)
|
void CScriptCameraPitchVolume::Touch(CActor& act, CStateManager& mgr)
|
||||||
{
|
{
|
||||||
CPlayer* pl = TCastToPtr<CPlayer>(&act);
|
CPlayer* pl = TCastToPtr<CPlayer>(act);
|
||||||
if (!pl)
|
if (!pl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue