- actually GCC is really dumb.

This commit is contained in:
Christoph Oelckers 2022-06-06 20:11:01 +02:00
parent f4d240b05d
commit 21b6f722be
2 changed files with 2 additions and 2 deletions

View File

@ -1273,7 +1273,7 @@ void FParser::SF_MobjTarget(void)
}
t_return.type = svt_mobj;
t_return.value.mobj = mo ? mo->target : nullptr;
t_return.value.mobj = mo ? mo->target.Get() : nullptr;
}
}

View File

@ -1201,7 +1201,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_CustomRailgun)
{
self->Angles.Yaw = self->AngleTo(self->target);
}
self->Angles.Pitch = P_AimLineAttack (self, self->Angles.Yaw, MISSILERANGE, &t, 60., 0, aim ? self->target : nullptr);
self->Angles.Pitch = P_AimLineAttack (self, self->Angles.Yaw, MISSILERANGE, &t, 60., 0, aim ? self->target.Get() : nullptr);
if (t.linetarget == NULL && aim)
{
// We probably won't hit the target, but aim at it anyway so we don't look stupid.