Add bIsPuff flag

This commit is contained in:
jekyllgrim 2024-06-03 01:47:41 +03:00 committed by Ricardo Luís Vaz Silva
commit f13bc09840
3 changed files with 5 additions and 0 deletions

View file

@ -6289,6 +6289,9 @@ AActor *P_SpawnPuff (AActor *source, PClassActor *pufftype, const DVector3 &pos1
// Angle is the opposite of the hit direction (i.e. the puff faces the source.)
puff->Angles.Yaw = hitdir + DAngle::fromDeg(180);
// [AA] Mark the spawned actor as a puff with a flag.
puff->flags9 |= MF9_ISPUFF;
// If a puff has a crash state and an actor was not hit,
// it will enter the crash state. This is used by the StrifeSpark
// and BlasterPuff.