- deleted unused getwalldist function.

This commit is contained in:
Christoph Oelckers 2022-09-30 23:34:37 +02:00
parent 215fc7d407
commit ce9bda47fe
2 changed files with 0 additions and 10 deletions

View file

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

View file

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