- added TheFortuneTeller's NORANDOMPUFFZ submission.

SVN r4170 (trunk)
This commit is contained in:
Christoph Oelckers 2013-02-27 10:35:44 +00:00
commit 33f363f4c6
4 changed files with 30 additions and 17 deletions

View file

@ -4738,8 +4738,9 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
AActor *P_SpawnPuff (AActor *source, const PClass *pufftype, fixed_t x, fixed_t y, fixed_t z, angle_t dir, int updown, int flags)
{
AActor *puff;
z += pr_spawnpuff.Random2 () << 10;
if (!(flags & PF_NORANDOMZ))
z += pr_spawnpuff.Random2 () << 10;
puff = Spawn (pufftype, x, y, z, ALLOW_REPLACE);
if (puff == NULL) return NULL;