mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- fixed z-offset handling of A_SkelMissile.
I can't believe I missed this for more than 10 years, considering that A_CustomMissile explicitly implements this case: It makes a crucial difference whether P_SpawnMissileZ is used or the actual z-position is temporarily changed. Reverted this function to the position changing method of the original.
This commit is contained in:
parent
0ef9ee23b1
commit
f1d2c7755a
1 changed files with 3 additions and 2 deletions
|
@ -28,8 +28,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_SkelMissile)
|
|||
return 0;
|
||||
|
||||
A_FaceTarget (self);
|
||||
missile = P_SpawnMissileZ (self, self->Z() + 48*FRACUNIT,
|
||||
self->target, PClass::FindActor("RevenantTracer"));
|
||||
self->AddZ(16*FRACUNIT);
|
||||
missile = P_SpawnMissile (self, self->target, PClass::FindActor("RevenantTracer"));
|
||||
self->AddZ(-16*FRACUNIT);
|
||||
|
||||
if (missile != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue