- let A_SpawnParticle respect the float bob offset

This commit is contained in:
Christoph Oelckers 2022-04-12 00:52:11 +02:00
parent 18ebc9986e
commit 29d1739371

View file

@ -1649,7 +1649,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_SpawnParticle)
if (flags & SPF_RELANG) angle += self->Angles.Yaw;
double s = angle.Sin();
double c = angle.Cos();
DVector3 pos(xoff, yoff, zoff);
DVector3 pos(xoff, yoff, zoff + self->GetBobOffset());
DVector3 vel(xvel, yvel, zvel);
DVector3 acc(accelx, accely, accelz);
//[MC] Code ripped right out of A_SpawnItemEx.