mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-23 09:40:58 +00:00
- fixed VSpriteBusy coordinate adjustment.
This commit is contained in:
parent
d892fa10d2
commit
3444991e4e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue