- Blood: Repair regression in VectorScan() from 266364fc2e causing demo regressions and other game issues.

Fixes #216.
This commit is contained in:
Mitchell Richters 2020-08-20 22:17:28 +10:00
parent cc15de3ed9
commit 37d687e4e9

View file

@ -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))
{