- GCC is dumb

This commit is contained in:
Christoph Oelckers 2022-06-06 19:49:57 +02:00
parent d1caf3a471
commit 90def7e8b0
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 : NULL;
t_return.value.mobj = mo ? mo->target : 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 : NULL);
self->Angles.Pitch = P_AimLineAttack (self, self->Angles.Yaw, MISSILERANGE, &t, 60., 0, aim ? self->target : nullptr);
if (t.linetarget == NULL && aim)
{
// We probably won't hit the target, but aim at it anyway so we don't look stupid.