mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- Blood: Repair regression in VectorScan()
from 266364fc2e
causing demo regressions and other game issues.
Fixes #216.
This commit is contained in:
parent
cc15de3ed9
commit
37d687e4e9
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ int VectorScan(spritetype *pSprite, int nOffset, int nZOffset, int dx, int dy, i
|
|||
int check1 = ((y1 - pOther->y)*dx - (x1 - pOther->x)*dy) / ksqrt(dx*dx+dy*dy);
|
||||
dassert(width > 0);
|
||||
int width2 = scale(check1, tileWidth(nPicnum), width);
|
||||
int nOffset = tileTopOffset(nPicnum);
|
||||
int nOffset = tileLeftOffset(nPicnum);
|
||||
width2 += nOffset + tileWidth(nPicnum) / 2;
|
||||
if (width2 >= 0 && width2 < tileWidth(nPicnum))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue