mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
- deleted unused utilities
This commit is contained in:
parent
66b00cfb52
commit
be0eb81c95
3 changed files with 1 additions and 27 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue