Fixed transfer of count secret flag from random spawner

https://forum.zdoom.org/viewtopic.php?t=59013
This commit is contained in:
alexey.lysiuk 2018-01-06 17:48:49 +02:00
parent 83cd53c9b1
commit 16333320d0

View file

@ -168,6 +168,7 @@ class RandomSpawner : Actor
newmobj.SpawnFlags = SpawnFlags & ~MTF_SECRET; // MTF_SECRET needs special treatment to avoid incrementing the secret counter twice. It had already been processed for the spawner itself.
newmobj.HandleSpawnFlags();
newmobj.SpawnFlags = SpawnFlags;
newmobj.bCountSecret = SpawnFlags & MTF_SECRET; // "Transfer" count secret flag to spawned actor
newmobj.ChangeTid(tid);
newmobj.Vel = Vel;
newmobj.master = master; // For things such as DamageMaster/DamageChildren, transfer mastery.