mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
e2be7183b4
commit
76d7fec2ff
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
int16_t yax_vnextsec(int16_t line, int16_t cf);
|
||||||
void yax_update(int32_t resetstat);
|
void yax_update(int32_t resetstat);
|
||||||
int32_t yax_getneighborsect(int32_t x, int32_t y, int32_t sectnum, int32_t cf);
|
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)
|
static FORCE_INLINE int32_t yax_waltosecmask(int32_t walclipmask)
|
||||||
{
|
{
|
||||||
|
|
|
@ -608,7 +608,7 @@ static int16_t *yumost=NULL, *ydmost=NULL; // used as if [numyaxbunches][xdimen
|
||||||
uint8_t haveymost[YAX_MAXBUNCHES>>3];
|
uint8_t haveymost[YAX_MAXBUNCHES>>3];
|
||||||
|
|
||||||
// adapted from build.c
|
// 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;
|
int64_t i, j, wx,wy, wx2,wy2, dx, dy;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue