Expose yax_getclosestpointonwall() for use outside of engine.cpp

git-svn-id: https://svn.eduke32.com/eduke32@7581 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-04-18 17:23:46 +00:00 committed by Christoph Oelckers
parent e2be7183b4
commit 76d7fec2ff
2 changed files with 2 additions and 1 deletions

View file

@ -208,6 +208,7 @@ void yax_setbunches(int16_t i, int16_t cb, int16_t fb);
int16_t yax_vnextsec(int16_t line, int16_t cf);
void yax_update(int32_t resetstat);
int32_t yax_getneighborsect(int32_t x, int32_t y, int32_t sectnum, int32_t cf);
void yax_getclosestpointonwall(int32_t dawall, int32_t *closestx, int32_t *closesty);
static FORCE_INLINE int32_t yax_waltosecmask(int32_t walclipmask)
{

View file

@ -608,7 +608,7 @@ static int16_t *yumost=NULL, *ydmost=NULL; // used as if [numyaxbunches][xdimen
uint8_t haveymost[YAX_MAXBUNCHES>>3];
// adapted from build.c
static void yax_getclosestpointonwall(int32_t dawall, int32_t *closestx, int32_t *closesty)
void yax_getclosestpointonwall(int32_t dawall, int32_t *closestx, int32_t *closesty)
{
int64_t i, j, wx,wy, wx2,wy2, dx, dy;