P_SpawnPuff MF4_RANDOMIZE behaviour

- Doom's BulletPuff random spawn tics behaviour was lost at some point.
This commit is contained in:
Edward Richardson 2015-01-13 21:01:00 +13:00
parent 9df56216b3
commit db25322b4c
1 changed files with 7 additions and 0 deletions

View File

@ -4959,6 +4959,13 @@ 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;
if ((puff->flags4 & MF4_RANDOMIZE) && puff->tics > 0)
{
puff->tics -= pr_spawnpuff() & 3;
if (puff->tics < 1)
puff->tics = 1;
}
//Moved puff creation and target/master/tracer setting to here.
if (puff && vict)
{