- fixed VSpriteBusy coordinate adjustment.

This commit is contained in:
Christoph Oelckers 2022-11-07 10:31:10 +01:00
parent d892fa10d2
commit 3444991e4e

View file

@ -1220,7 +1220,7 @@ int VSpriteBusy(sectortype* pSector, unsigned int a2, DBloodActor* initiator)
if (actor->spr.cstat & CSTAT_SPRITE_MOVE_FORWARD)
{
viewBackupSpriteLoc(actor);
actor->spr.pos.Z += actor->basePoint.Z + dz1 * GetWaveValue(a2, nWave);
actor->spr.pos.Z = actor->basePoint.Z + dz1 * GetWaveValue(a2, nWave);
}
}
}
@ -1233,7 +1233,7 @@ int VSpriteBusy(sectortype* pSector, unsigned int a2, DBloodActor* initiator)
if (actor->spr.cstat & CSTAT_SPRITE_MOVE_REVERSE)
{
viewBackupSpriteLoc(actor);
actor->spr.pos.Z += actor->basePoint.Z + dz2 * GetWaveValue(a2, nWave);
actor->spr.pos.Z = actor->basePoint.Z + dz2 * GetWaveValue(a2, nWave);
}
}
}