- Blood: fixed blood splats being spawned in the wrong place.

This commit is contained in:
Christoph Oelckers 2022-12-17 19:34:35 +01:00
parent 32071c4460
commit 521a59fd26

View file

@ -451,7 +451,7 @@ void fxBloodBits(DBloodActor* actor, sectortype*) // 14
actor->spr.pos.Z += floorZ - bottom;
DAngle nAngle = RandomAngle();
int nDist = Random(16);
auto pos = nAngle.ToVector() * nDist * 4;
auto pos = actor->spr.pos + nAngle.ToVector() * nDist * 4;
gFX.fxSpawnActor(FX_48, actor->sector(), DVector3(pos, actor->spr.pos.Z));
if (actor->spr.Angles.Yaw == DAngle180)
{