From: nhmall Date: Sat, 2 Jul 2022 13:21:58 +0000 (-0400) Subject: a couple of follow-ups X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75c5f3713fdbc464d6f22dcadfa1ec38f054bfae;p=nethack a couple of follow-ups --- diff --git a/include/extern.h b/include/extern.h index 36bf0ed39..b114cf6bc 100644 --- a/include/extern.h +++ b/include/extern.h @@ -2557,7 +2557,7 @@ extern void set_selection_floodfillchk(int(*)(coordxy, coordxy)); extern void selection_floodfill(struct selectionvar *, coordxy, coordxy, boolean); extern boolean pm_good_location(coordxy, coordxy, struct permonst *); extern void get_location_coord(coordxy *, coordxy *, int, struct mkroom *, long); -extern void selection_setpoint(coordxy, coordxy, struct selectionvar *, coordxy); +extern void selection_setpoint(coordxy, coordxy, struct selectionvar *, int); extern struct selectionvar * selection_not(struct selectionvar *); extern void selection_filter_percent(struct selectionvar *, int); extern int selection_rndcoord(struct selectionvar *, coordxy *, coordxy *, @@ -2568,7 +2568,7 @@ extern void selection_do_line(coordxy, coordxy, coordxy, coordxy, extern void selection_do_randline(coordxy, coordxy, coordxy, coordxy, schar, schar, struct selectionvar *); extern struct selectionvar *selection_filter_mapchar(struct selectionvar *, - coordxy, int); + xint16, int); extern void set_floodfillchk_match_under(coordxy); extern void selection_do_ellipse(struct selectionvar *, int, int, int, int, int); diff --git a/src/sp_lev.c b/src/sp_lev.c index 1d8f0de55..b4aa4d8d8 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -4345,7 +4345,7 @@ selection_getpoint(coordxy x, coordxy y, struct selectionvar* sel) } void -selection_setpoint(coordxy x, coordxy y, struct selectionvar* sel, coordxy c) +selection_setpoint(coordxy x, coordxy y, struct selectionvar* sel, int c) { if (!sel || !sel->map) return; @@ -4369,7 +4369,7 @@ selection_not(struct selectionvar* s) } struct selectionvar * -selection_filter_mapchar(struct selectionvar* ov, coordxy typ, int lit) +selection_filter_mapchar(struct selectionvar* ov, xint16 typ, int lit) { int x, y; struct selectionvar *ret;