mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-31 02:30:33 +00:00
- fixed: P_SpawnPuff must set the puff's owner before doing any state jumps.
SVN r2128 (trunk)
This commit is contained in:
parent
c363f169d7
commit
8b9d8137fc
1 changed files with 5 additions and 4 deletions
|
@ -4446,6 +4446,11 @@ AActor *P_SpawnPuff (AActor *source, const PClass *pufftype, fixed_t x, fixed_t
|
|||
|
||||
puff = Spawn (pufftype, x, y, z, ALLOW_REPLACE);
|
||||
if (puff == NULL) return NULL;
|
||||
|
||||
// [BB] If the puff came from a player, set the target of the puff to this player.
|
||||
if ( puff && (puff->flags5 & MF5_PUFFGETSOWNER))
|
||||
puff->target = source;
|
||||
|
||||
if (source != NULL) puff->angle = R_PointToAngle2(x, y, source->x, source->y);
|
||||
|
||||
// If a puff has a crash state and an actor was not hit,
|
||||
|
@ -4481,10 +4486,6 @@ AActor *P_SpawnPuff (AActor *source, const PClass *pufftype, fixed_t x, fixed_t
|
|||
}
|
||||
}
|
||||
|
||||
// [BB] If the puff came from a player, set the target of the puff to this player.
|
||||
if ( puff && (puff->flags5 & MF5_PUFFGETSOWNER))
|
||||
puff->target = source;
|
||||
|
||||
return puff;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue