diff --git a/source/games/blood/src/gameutil.cpp b/source/games/blood/src/gameutil.cpp index 273d14aeb..6c8be6285 100644 --- a/source/games/blood/src/gameutil.cpp +++ b/source/games/blood/src/gameutil.cpp @@ -234,17 +234,6 @@ bool CheckProximityWall(walltype* pWall, int x, int y, int nDist) // //--------------------------------------------------------------------------- -int GetWallAngle(walltype* pWall) -{ - return getangle(pWall->delta()); -} - -//--------------------------------------------------------------------------- -// -// -// -//--------------------------------------------------------------------------- - bool IntersectRay(int wx, int wy, int wdx, int wdy, int x1, int y1, int z1, int x2, int y2, int z2, int* ix, int* iy, int* iz) { int dX = x1 - x2; diff --git a/source/games/blood/src/gameutil.h b/source/games/blood/src/gameutil.h index 98ac2696c..1ca98a044 100644 --- a/source/games/blood/src/gameutil.h +++ b/source/games/blood/src/gameutil.h @@ -34,7 +34,6 @@ enum { bool CheckProximity(DBloodActor* pSprite, const DVector3& pos, sectortype* pSector, int nDist); bool CheckProximityPoint(int nX1, int nY1, int nZ1, int nX2, int nY2, int nZ2, int nDist); -[[deprecated]] int GetWallAngle(walltype* pWall); bool IntersectRay(int wx, int wy, int wdx, int wdy, int x1, int y1, int z1, int x2, int y2, int z2, int* ix, int* iy, int* iz); int HitScan(DBloodActor* pSprite, double z, const DVector3& pos, unsigned int nMask, double range = 0); diff --git a/source/games/blood/src/nnexts.cpp b/source/games/blood/src/nnexts.cpp index 438f75fab..bd2dd93e7 100644 --- a/source/games/blood/src/nnexts.cpp +++ b/source/games/blood/src/nnexts.cpp @@ -5167,11 +5167,6 @@ bool aiFightDudeCanSeeTarget(DBloodActor* dudeactor, DUDEINFO* pDudeInfo, DBlood // is there a line of sight to the target? if (cansee(dudeactor->spr.pos, dudeactor->sector(), targetactor->spr.pos.plusZ(-height), targetactor->sector())) { - /*int nAngle = getangle(dx, dy); - int losAngle = ((1024 + nAngle - dudeactor->spr.angle) & 2047) - 1024; - - // is the target visible? - if (abs(losAngle) < 2048) // 360 deg periphery here*/ return true; }