Use struct to pass data out of mfndpos
Instead of passing two array pointers to mfndpos, fold the data into a specific struct.
This commit is contained in:
@@ -71,6 +71,10 @@
|
||||
#include "artifact.h"
|
||||
#endif
|
||||
|
||||
#ifndef MFNDPOS_H
|
||||
#include "mfndpos.h"
|
||||
#endif
|
||||
|
||||
/* ### alloc.c ### */
|
||||
|
||||
#if 0
|
||||
@@ -1748,7 +1752,7 @@ extern boolean can_touch_safely(struct monst *, struct obj *) NONNULLARG12;
|
||||
extern int can_carry(struct monst *, struct obj *) NONNULLARG12;
|
||||
extern long mon_allowflags(struct monst *) NONNULLARG1;
|
||||
extern boolean m_in_air(struct monst *) NONNULLARG1;
|
||||
extern int mfndpos(struct monst *, coord *, long *, long) NONNULLPTRS;
|
||||
extern int mfndpos(struct monst *, struct mfndposdata *, long) NONNULLPTRS;
|
||||
extern boolean monnear(struct monst *, coordxy, coordxy) NONNULLARG1;
|
||||
extern void dmonsfree(void);
|
||||
extern void elemental_clog(struct monst *) NONNULLARG1;
|
||||
@@ -1918,7 +1922,7 @@ extern boolean accessible(coordxy, coordxy);
|
||||
extern void set_apparxy(struct monst *) NONNULLARG1;
|
||||
extern boolean can_ooze(struct monst *) NONNULLARG1;
|
||||
extern boolean can_fog(struct monst *) NONNULLARG1;
|
||||
extern boolean should_displace(struct monst *, coord *, long *, int, coordxy,
|
||||
extern boolean should_displace(struct monst *, struct mfndposdata, coordxy,
|
||||
coordxy) NONNULLPTRS;
|
||||
extern boolean undesirable_disp(struct monst *, coordxy, coordxy) NONNULLARG1;
|
||||
extern boolean can_hide_under_obj(struct obj *);
|
||||
|
||||
Reference in New Issue
Block a user