mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-12 23:54:37 +00:00
GetClosestSpriteSectors - Fixed typo with nLength check
This commit is contained in:
parent
6606f0bc5a
commit
24b5673130
1 changed files with 1 additions and 1 deletions
|
@ -884,7 +884,7 @@ int GetClosestSpriteSectors(int nSector, int x, int y, int nDist, uint8_t *pSect
|
|||
const int nWallB = wall[nWallA].point2;
|
||||
int x1 = wall[nWallA].x, y1 = wall[nWallA].y;
|
||||
int x2 = wall[nWallB].x, y2 = wall[nWallB].y;
|
||||
int nLength = approxDist(x1-x2, y1-x2);
|
||||
int nLength = approxDist(x1-x2, y1-y2);
|
||||
const int nDist2 = (nDist+(nDist>>1))<<4;
|
||||
if (nLength > nDist2) // if span is greater than range * 1.5, test midsection
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue