mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- GCC is dumb
This commit is contained in:
parent
d1caf3a471
commit
90def7e8b0
2 changed files with 2 additions and 2 deletions
|
@ -1273,7 +1273,7 @@ void FParser::SF_MobjTarget(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
t_return.type = svt_mobj;
|
t_return.type = svt_mobj;
|
||||||
t_return.value.mobj = mo ? mo->target : NULL;
|
t_return.value.mobj = mo ? mo->target : nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1201,7 +1201,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_CustomRailgun)
|
||||||
{
|
{
|
||||||
self->Angles.Yaw = self->AngleTo(self->target);
|
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)
|
if (t.linetarget == NULL && aim)
|
||||||
{
|
{
|
||||||
// We probably won't hit the target, but aim at it anyway so we don't look stupid.
|
// We probably won't hit the target, but aim at it anyway so we don't look stupid.
|
||||||
|
|
Loading…
Reference in a new issue