mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-15 16:30:45 +00:00
- Blood: fixed blood splats being spawned in the wrong place.
This commit is contained in:
parent
a1d602b2c7
commit
35ce4dca91
1 changed files with 1 additions and 1 deletions
|
@ -445,7 +445,7 @@ void fxBloodBits(DBloodActor* actor, sectortype*) // 14
|
||||||
actor->spr.pos.Z += floorZ - bottom;
|
actor->spr.pos.Z += floorZ - bottom;
|
||||||
DAngle nAngle = RandomAngle();
|
DAngle nAngle = RandomAngle();
|
||||||
int nDist = Random(16);
|
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));
|
gFX.fxSpawnActor(FX_48, actor->sector(), DVector3(pos, actor->spr.pos.Z));
|
||||||
if (actor->spr.angle == DAngle180)
|
if (actor->spr.angle == DAngle180)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue