Skip to content

Commit

Permalink
Fixed transfer of count secret flag from random spawner
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jan 6, 2018
1 parent 83cd53c commit 1633332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wadsrc/static/zscript/shared/randomspawner.txt
Expand Up @@ -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.
Expand Down

0 comments on commit 1633332

Please sign in to comment.