77
88static int use_camera (struct obj * );
99static int use_towel (struct obj * );
10- static boolean its_dead (int , int , int * );
10+ static boolean its_dead (coordxy , coordxy , int * );
1111static int use_stethoscope (struct obj * );
1212static void use_whistle (struct obj * );
1313static void use_magic_whistle (struct obj * );
@@ -39,10 +39,10 @@ static int do_break_wand(struct obj *);
3939static int apply_ok (struct obj * );
4040static int flip_through_book (struct obj * );
4141static boolean figurine_location_checks (struct obj * , coord * , boolean );
42- static boolean check_jump (genericptr_t , int , int );
43- static boolean is_valid_jump_pos (int , int , int , boolean );
44- static boolean get_valid_jump_position (int , int );
45- static boolean get_valid_polearm_position (int , int );
42+ static boolean check_jump (genericptr_t , coordxy , coordxy );
43+ static boolean is_valid_jump_pos (coordxy , coordxy , int , boolean );
44+ static boolean get_valid_jump_position (coordxy , coordxy );
45+ static boolean get_valid_polearm_position (coordxy , coordxy );
4646static boolean find_poleable_mon (coord * , int , int );
4747
4848static const char no_elbow_room [] =
@@ -177,7 +177,7 @@ use_towel(struct obj *obj)
177177
178178/* maybe give a stethoscope message based on floor objects */
179179static boolean
180- its_dead (int rx , int ry , int * resp )
180+ its_dead (coordxy rx , coordxy ry , int * resp )
181181{
182182 char buf [BUFSZ ];
183183 boolean more_corpses ;
@@ -302,7 +302,8 @@ use_stethoscope(struct obj *obj)
302302{
303303 struct monst * mtmp ;
304304 struct rm * lev ;
305- int rx , ry , res ;
305+ int res ;
306+ coordxy rx , ry ;
306307 boolean interference = (u .uswallow && is_whirly (u .ustuck -> data )
307308 && !rn2 (Role_if (PM_HEALER ) ? 10 : 3 ));
308309
@@ -1769,7 +1770,7 @@ enum jump_trajectory {
17691770
17701771/* callback routine for walk_path() */
17711772static boolean
1772- check_jump (genericptr arg , int x , int y )
1773+ check_jump (genericptr arg , coordxy x , coordxy y )
17731774{
17741775 int traj = * (int * ) arg ;
17751776 struct rm * lev = & levl [x ][y ];
@@ -1800,7 +1801,7 @@ check_jump(genericptr arg, int x, int y)
18001801}
18011802
18021803static boolean
1803- is_valid_jump_pos (int x , int y , int magic , boolean showmsg )
1804+ is_valid_jump_pos (coordxy x , coordxy y , int magic , boolean showmsg )
18041805{
18051806 if (!magic && !(HJumping & ~INTRINSIC ) && !EJumping && distu (x , y ) != 5 ) {
18061807 /* The Knight jumping restriction still applies when riding a
@@ -1828,9 +1829,9 @@ is_valid_jump_pos(int x, int y, int magic, boolean showmsg)
18281829 passage through doorways: horizonal, vertical, or diagonal;
18291830 since knight's jump and other irregular directions are
18301831 possible, we flatten those out to simplify door checks */
1831- int diag , traj ,
1832- dx = x - u .ux , dy = y - u .uy ,
1833- ax = abs (dx ), ay = abs (dy );
1832+ int diag , traj ;
1833+ coordxy dx = x - u .ux , dy = y - u .uy ,
1834+ ax = abs (dx ), ay = abs (dy );
18341835
18351836 /* diag: any non-orthogonal destination classifed as diagonal */
18361837 diag = (magic || Passes_walls || (!dx && !dy )) ? jAny
@@ -1866,7 +1867,7 @@ is_valid_jump_pos(int x, int y, int magic, boolean showmsg)
18661867}
18671868
18681869static boolean
1869- get_valid_jump_position (int x , int y )
1870+ get_valid_jump_position (coordxy x , coordxy y )
18701871{
18711872 return (isok (x , y )
18721873 && (ACCESSIBLE (levl [x ][y ].typ ) || Passes_walls )
@@ -1879,12 +1880,12 @@ display_jump_positions(int state)
18791880 if (state == 0 ) {
18801881 tmp_at (DISP_BEAM , cmap_to_glyph (S_goodpos ));
18811882 } else if (state == 1 ) {
1882- int x , y , dx , dy ;
1883+ coordxy x , y , dx , dy ;
18831884
18841885 for (dx = -4 ; dx <= 4 ; dx ++ )
18851886 for (dy = -4 ; dy <= 4 ; dy ++ ) {
1886- x = dx + (int ) u .ux ;
1887- y = dy + (int ) u .uy ;
1887+ x = dx + (coordxy ) u .ux ;
1888+ y = dy + (coordxy ) u .uy ;
18881889 if (get_valid_jump_position (x , y ))
18891890 tmp_at (x , y );
18901891 }
@@ -3143,7 +3144,8 @@ find_poleable_mon(coord *pos, int min_range, int max_range)
31433144 struct monst * mtmp ;
31443145 coord mpos ;
31453146 boolean impaired ;
3146- int x , y , lo_x , hi_x , lo_y , hi_y , rt , glyph ;
3147+ coordxy x , y , lo_x , hi_x , lo_y , hi_y , rt ;
3148+ int glyph ;
31473149
31483150 impaired = (Confusion || Stunned || Hallucination );
31493151 mpos .x = mpos .y = 0 ; /* no candidate location yet */
@@ -3176,7 +3178,7 @@ find_poleable_mon(coord *pos, int min_range, int max_range)
31763178}
31773179
31783180static boolean
3179- get_valid_polearm_position (int x , int y )
3181+ get_valid_polearm_position (coordxy x , coordxy y )
31803182{
31813183 int glyph ;
31823184
@@ -3194,7 +3196,7 @@ display_polearm_positions(int state)
31943196 if (state == 0 ) {
31953197 tmp_at (DISP_BEAM , cmap_to_glyph (S_goodpos ));
31963198 } else if (state == 1 ) {
3197- int x , y , dx , dy ;
3199+ coordxy x , y , dx , dy ;
31983200
31993201 for (dx = -4 ; dx <= 4 ; dx ++ )
32003202 for (dy = -4 ; dy <= 4 ; dy ++ ) {
@@ -3622,7 +3624,8 @@ static int
36223624do_break_wand (struct obj * obj )
36233625{
36243626 static const char nothing_else_happens [] = "But nothing else happens..." ;
3625- register int i , x , y ;
3627+ register int i ;
3628+ coordxy x , y ;
36263629 register struct monst * mon ;
36273630 int dmg , damage ;
36283631 boolean affects_objects ;
0 commit comments