From 24b5673130c442e0dbf8c29ca428bbee41075f13 Mon Sep 17 00:00:00 2001 From: carnivoroussociety <38839485+carnivoroussociety@users.noreply.github.com> Date: Thu, 19 Aug 2021 03:21:41 +1000 Subject: [PATCH] GetClosestSpriteSectors - Fixed typo with nLength check --- source/games/blood/src/gameutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/blood/src/gameutil.cpp b/source/games/blood/src/gameutil.cpp index b964b8a1b..c51e73e3b 100644 --- a/source/games/blood/src/gameutil.cpp +++ b/source/games/blood/src/gameutil.cpp @@ -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 {