]> granicus.if.org Git - nethack/commitdiff
couple of reformatting bits
authorPatR <rankin@nethack.org>
Wed, 12 Oct 2022 09:19:38 +0000 (02:19 -0700)
committerPatR <rankin@nethack.org>
Wed, 12 Oct 2022 09:19:38 +0000 (02:19 -0700)
Some reformatting done while working on ATTRMAX().

src/attrib.c
src/insight.c

index 23747bf5935292cc753a4c6e0a44313e69ef6ddd..1151a88d94a5a79c7ed03c7ab92b6b5b7c16bc03 100644 (file)
@@ -308,11 +308,12 @@ poisontell(int typ,         /* which attribute */
 
 /* called when an attack or trap has poisoned hero (used to be in mon.c) */
 void
-poisoned(const char *reason,    /* controls what messages we display */
-         int typ,
-         const char *pkiller,   /* for score+log file if fatal */
-         int fatal,             /* if fatal is 0, limit damage to adjattrib */
-         boolean thrown_weapon) /* thrown weapons are less deadly */
+poisoned(
+    const char *reason,    /* controls what messages we display */
+    int typ,
+    const char *pkiller,   /* for score+log file if fatal */
+    int fatal,             /* if fatal is 0, limit damage to adjattrib */
+    boolean thrown_weapon) /* thrown weapons are less deadly */
 {
     int i, loss, kprefix = KILLED_BY_AN;
     boolean blast = !strcmp(reason, "blast");
index cdc4ec41275b69cbe6c776cae26b14cefca0deae..d7958b576414c63a0132587e956f641e1c562ff6 100644 (file)
@@ -260,14 +260,16 @@ cause_known(
 
 /* format a characteristic value, accommodating Strength's strangeness */
 static char *
-attrval(int attrindx, int attrvalue,
-        char resultbuf[]) /* should be at least [7] to hold "18/100\0" */
+attrval(
+    int attrindx,
+    int attrvalue,
+    char resultbuf[]) /* should be at least [7] to hold "18/100\0" */
 {
     if (attrindx != A_STR || attrvalue <= 18)
         Sprintf(resultbuf, "%d", attrvalue);
     else if (attrvalue > STR18(100)) /* 19 to 25 */
         Sprintf(resultbuf, "%d", attrvalue - 100);
-    else /* simplify "18/ **" to be "18/100" */
+    else /* simplify "18/\**" to be "18/100" */
         Sprintf(resultbuf, "18/%02d", attrvalue - 18);
     return resultbuf;
 }