From 76d7fec2ffc54410c1d60f36bf372daf3520299a Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 18 Apr 2019 17:23:46 +0000 Subject: [PATCH] Expose yax_getclosestpointonwall() for use outside of engine.cpp git-svn-id: https://svn.eduke32.com/eduke32@7581 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/build.h | 1 + source/build/src/engine.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/build/include/build.h b/source/build/include/build.h index 17f9d4897..88e775c74 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -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) { diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index a4a72d664..0579632fa 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -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;