mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- fixed: transferring a translation to a missile needs to check if the missile was spawned successfully.
This commit is contained in:
parent
c4bc5f7b97
commit
7d7f146ce1
1 changed files with 1 additions and 4 deletions
|
@ -1340,14 +1340,11 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FireCustomMissile)
|
||||||
self->pitch -= pitch;
|
self->pitch -= pitch;
|
||||||
AActor * misl=P_SpawnPlayerMissile (self, x, y, z, ti, shootangle, &linetarget);
|
AActor * misl=P_SpawnPlayerMissile (self, x, y, z, ti, shootangle, &linetarget);
|
||||||
self->pitch = SavedPlayerPitch;
|
self->pitch = SavedPlayerPitch;
|
||||||
if (Flags & FPF_TRANSFERTRANSLATION)
|
|
||||||
{
|
|
||||||
misl->Translation = self->Translation;
|
|
||||||
}
|
|
||||||
|
|
||||||
// automatic handling of seeker missiles
|
// automatic handling of seeker missiles
|
||||||
if (misl)
|
if (misl)
|
||||||
{
|
{
|
||||||
|
if (Flags & FPF_TRANSFERTRANSLATION) misl->Translation = self->Translation;
|
||||||
if (linetarget && misl->flags2&MF2_SEEKERMISSILE) misl->tracer=linetarget;
|
if (linetarget && misl->flags2&MF2_SEEKERMISSILE) misl->tracer=linetarget;
|
||||||
if (!(Flags & FPF_AIMATANGLE))
|
if (!(Flags & FPF_AIMATANGLE))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue