- deleted several unused wrappers and overloads.

This commit is contained in:
Christoph Oelckers 2022-09-28 12:18:27 +02:00
parent 0bfc57e68a
commit f0dc95597b
4 changed files with 0 additions and 41 deletions

View file

@ -235,22 +235,6 @@ inline int getangle(double xvect, double yvect)
return DVector2(xvect, yvect).Angle().Buildang();
}
inline int getangle(const DVector2& vec)
{
return getangle(vec.X, vec.Y);
}
inline int getangle(const vec2_t& vec)
{
return getangle(vec.X, vec.Y);
}
inline int32_t getangle(walltype* wal)
{
return getangle(wal->delta());
}
//---------------------------------------------------------------------------
//
//

View file

@ -474,16 +474,6 @@ struct spritetypebase
{
pos = { x * maptoworld, y * maptoworld, z * zmaptoworld };
}
const vec3_t int_pos() const
{
return { int(pos.X * worldtoint), int(pos.Y * worldtoint), int(pos.Z * zworldtoint) };
}
constexpr int int_ang() const
{
return angle.Buildang();
}
};

View file

@ -118,16 +118,3 @@ inline void updatesector(int x_, int y_, int* sectnum)
DoUpdateSector(x, y, 0, sectnum, MAXUPDATESECTORDIST, inside0);
}
[[deprecated]]
inline void updatesectorz(int x_, int y_, int z_, sectortype** const sectp)
{
double x = x_ * inttoworld;
double y = y_ * inttoworld;
double z = z_ * zinttoworld;
int sectno = *sectp ? sector.IndexOf(*sectp) : -1;
DoUpdateSector(x, y, z, &sectno, MAXUPDATESECTORDIST, insideZ);
*sectp = sectno == -1 ? nullptr : &sector[sectno];
}

View file

@ -101,8 +101,6 @@ struct XSPRITE {
TObjPtr<DBloodActor*> target; // target sprite
TObjPtr<DBloodActor*> burnSource;
const vec3_t int_TargetPos() const { return { int(TargetPos.X * worldtoint), int(TargetPos.Y * worldtoint), int(TargetPos.Z * worldtoint)}; }
DVector3 TargetPos;
DAngle goalAng; // Dude goal ang