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
+2 -2
View File
@@ -1922,8 +1922,8 @@ extern boolean accessible(coordxy, coordxy);
extern void set_apparxy(struct monst *) NONNULLARG1; extern void set_apparxy(struct monst *) NONNULLARG1;
extern boolean can_ooze(struct monst *) NONNULLARG1; extern boolean can_ooze(struct monst *) NONNULLARG1;
extern boolean can_fog(struct monst *) NONNULLARG1; extern boolean can_fog(struct monst *) NONNULLARG1;
extern boolean should_displace(struct monst *, struct mfndposdata *, coordxy, extern boolean should_displace(struct monst *, const struct mfndposdata *,
coordxy) NONNULLPTRS; coordxy, coordxy) NONNULLPTRS;
extern boolean undesirable_disp(struct monst *, coordxy, coordxy) NONNULLARG1; extern boolean undesirable_disp(struct monst *, coordxy, coordxy) NONNULLARG1;
extern boolean can_hide_under_obj(struct obj *); extern boolean can_hide_under_obj(struct obj *);
+1 -1
View File
@@ -1069,7 +1069,7 @@ itsstuck(struct monst *mtmp)
boolean boolean
should_displace( should_displace(
struct monst *mtmp, struct monst *mtmp,
struct mfndposdata *data, const struct mfndposdata *data,
coordxy ggx, coordxy ggx,
coordxy ggy) coordxy ggy)
{ {