mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- deleted unused getwalldist function.
This commit is contained in:
parent
215fc7d407
commit
ce9bda47fe
2 changed files with 0 additions and 10 deletions
|
@ -29,8 +29,6 @@ typedef int64_t coord_t;
|
|||
#include "maptypes.h"
|
||||
#include "clip.h"
|
||||
|
||||
int32_t getwalldist(vec2_t const in, int const wallnum, vec2_t * const out);
|
||||
|
||||
enum {
|
||||
ENGINECOMPATIBILITY_NONE = 0,
|
||||
ENGINECOMPATIBILITY_19950829, // Powerslave/Exhumed
|
||||
|
|
|
@ -255,14 +255,6 @@ static inline void keepaway(int32_t *x, int32_t *y, int32_t w)
|
|||
while (1);
|
||||
}
|
||||
|
||||
static int32_t getwalldist(vec2_t const in, int const wallnum)
|
||||
{
|
||||
auto dvec = NearestPointOnWall(in.X * maptoworld, in.Y * maptoworld, &wall[wallnum]);
|
||||
vec2_t closest = { int(dvec.X * worldtoint), int(dvec.Y * worldtoint) };
|
||||
return abs(closest.X - in.X) + abs(closest.Y - in.Y);
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// clipmove
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue