mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-14 08:30:35 +00:00
- Repair voxel 2D vector adjustment.
* Originates from a6fb831894
.
* Division taken off, probably mixing up x/yrepeat and x/yoffset.
* Fixes #869.
This commit is contained in:
parent
a4bca328bc
commit
e8f2f98473
1 changed files with 2 additions and 2 deletions
|
@ -487,8 +487,8 @@ bool HWSprite::ProcessVoxel(HWDrawInfo* di, voxmodel_t* vox, tspritetype* spr, s
|
|||
{
|
||||
sprxscale *= 1.25f;
|
||||
auto rvec = ownerActor->sprext.rot.Yaw.ToVector();
|
||||
translatevec.Y -= spr->xoffset * rvec.X;
|
||||
translatevec.X += spr->xoffset * rvec.Y;
|
||||
translatevec.Y -= spr->xoffset * rvec.X / 64;
|
||||
translatevec.X += spr->xoffset * rvec.Y / 64;
|
||||
}
|
||||
|
||||
if (spr->cstat & CSTAT_SPRITE_YFLIP)
|
||||
|
|
Loading…
Reference in a new issue