should_displace() does not modify mfndposdata struct pointed at by data param

This commit is contained in:
nhmall
2026-01-04 11:54:28 -05:00
parent 44fcbb180d
commit 4b5b146674
2 changed files with 3 additions and 3 deletions

View File

@@ -1922,8 +1922,8 @@ 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 *, struct mfndposdata *, coordxy,
coordxy) NONNULLPTRS;
extern boolean should_displace(struct monst *, const struct mfndposdata *,
coordxy, coordxy) NONNULLPTRS;
extern boolean undesirable_disp(struct monst *, coordxy, coordxy) NONNULLARG1;
extern boolean can_hide_under_obj(struct obj *);

View File

@@ -1069,7 +1069,7 @@ itsstuck(struct monst *mtmp)
boolean
should_displace(
struct monst *mtmp,
struct mfndposdata *data,
const struct mfndposdata *data,
coordxy ggx,
coordxy ggy)
{