- deleted unused GetWallAngle function and comment cleanup

This commit is contained in:
Christoph Oelckers 2022-09-28 12:08:19 +02:00
parent 89cdd17cc2
commit 9cd5766cd0
3 changed files with 0 additions and 17 deletions

View file

@ -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;

View file

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

View file

@ -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;
}