mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-23 04:21:00 +00:00
- actually GCC is really dumb.
This commit is contained in:
parent
f4d240b05d
commit
21b6f722be
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 : nullptr;
|
t_return.value.mobj = mo ? mo->target.Get() : 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 : nullptr);
|
self->Angles.Pitch = P_AimLineAttack (self, self->Angles.Yaw, MISSILERANGE, &t, 60., 0, aim ? self->target.Get() : 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