From 29d1739371343edc8552f1f0a003857db7440fa0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 12 Apr 2022 00:52:11 +0200 Subject: [PATCH] - let A_SpawnParticle respect the float bob offset --- src/playsim/p_actionfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/p_actionfunctions.cpp b/src/playsim/p_actionfunctions.cpp index 244dbca5eb..1bcdfaea5b 100644 --- a/src/playsim/p_actionfunctions.cpp +++ b/src/playsim/p_actionfunctions.cpp @@ -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.