]> granicus.if.org Git - nethack/commitdiff
a couple of follow-ups
authornhmall <nhmall@nethack.org>
Sat, 2 Jul 2022 13:21:58 +0000 (09:21 -0400)
committernhmall <nhmall@nethack.org>
Sat, 2 Jul 2022 13:21:58 +0000 (09:21 -0400)
include/extern.h
src/sp_lev.c

index 36bf0ed39f62ac90e24a1f9c1df43c55a2a55d4c..b114cf6bcdd358ed9aa9a4b182bda845e167f08d 100644 (file)
@@ -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);
index 1d8f0de55503a3d73b69a65778c844dc93b730d8..b4aa4d8d8e5f33bc35af46b4c403c52fa357cd5e 100644 (file)
@@ -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;