diff --git a/source/build/include/build.h b/source/build/include/build.h index 2600eaaa7..4577e8e67 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -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 diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index ed0facc24..229bbb70a 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -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 //