]> granicus.if.org Git - nethack/commitdiff
prefix static version of ranged_attk() in mdlib.c
authornhmall <nhmall@nethack.org>
Sat, 5 Nov 2022 16:38:02 +0000 (12:38 -0400)
committernhmall <nhmall@nethack.org>
Sat, 5 Nov 2022 16:38:02 +0000 (12:38 -0400)
src/mdlib.c

index fa07251c56b35ced1827a7574608ede10af9d6f8..400a0f2b89eb7a9c1844d6886627c55b003af4d7 100644 (file)
@@ -313,7 +313,7 @@ RESTORE_WARNING_FORMAT_NONLITERAL
  *      transfer relevant generated monstr values to include/monsters.h;
  *      delete src/monstr.c.
  */
-static boolean ranged_attk(struct permonst *);
+static boolean mdlib_ranged_attk(struct permonst *);
 
  /*
  * This routine is designed to return an integer value which represents
@@ -333,7 +333,7 @@ mstrength(struct permonst* ptr)
     n += (!!(ptr->geno & G_LGROUP)) << 1;
 
     /* for ranged attacks */
-    if (ranged_attk(ptr))
+    if (mdlib_ranged_attk(ptr))
         n++;
 
     /* for higher ac values */
@@ -380,7 +380,7 @@ mstrength(struct permonst* ptr)
 
 /* returns True if monster can attack at range */
 static boolean
-ranged_attk(register struct permonst* ptr)
+mdlib_ranged_attk(register struct permonst* ptr)
 {
     register int i, j;
     register int atk_mask = (1 << AT_BREA) | (1 << AT_SPIT) | (1 << AT_GAZE);