- deleted unused utilities

This commit is contained in:
Christoph Oelckers 2022-09-13 23:57:40 +02:00
parent 66b00cfb52
commit be0eb81c95
3 changed files with 1 additions and 27 deletions

View file

@ -94,22 +94,6 @@ inline int checkcursectnums(sectortype* se)
return -1;
}
inline int ldist(DDukeActor* s1, DDukeActor* s2)
{
int vx, vy;
vx = s1->int_pos().X - s2->int_pos().X;
vy = s1->int_pos().Y - s2->int_pos().Y;
return(FindDistance2D(vx, vy) + 1);
}
inline int ldist(const DDukeActor* s1, const tspritetype* s2)
{
int vx, vy;
vx = s1->int_pos().X - s2->int_pos().X;
vy = s1->int_pos().Y - s2->int_pos().Y;
return(FindDistance2D(vx, vy) + 1);
}
inline bool isIn(int value, int first)
{
return value == first;

View file

@ -857,7 +857,7 @@ static void shootmortar(DDukeActor* actor, int p, const DVector3& pos, DAngle an
void shoot_r(DDukeActor* actor, int atwith)
{
int sa, p;
int sx, sy, sz, vel, zvel, x;
int sx, sy, sz, zvel;
auto const sect = actor->sector();

View file

@ -386,16 +386,6 @@ struct player_struct
{
return { int(pos.X * worldtoint), int(pos.Y * worldtoint), int(pos.Z * zworldtoint) };
}
vec3_t player_int_opos() const
{
return { int(opos.X * worldtoint), int(opos.Y * worldtoint), int(opos.Z * zworldtoint) };
}
void player_add_int_z(int z)
{
pos.Z += z * zinttoworld;
}
};
struct Cycler