]> granicus.if.org Git - nethack/commitdiff
wounded legs check in insight.c
authornhmall <nhmall@nethack.org>
Mon, 25 Oct 2021 01:34:05 +0000 (21:34 -0400)
committernhmall <nhmall@nethack.org>
Mon, 25 Oct 2021 01:34:05 +0000 (21:34 -0400)
close #620

src/insight.c

index 2bfd58e053424ea8c6f3a5d8124a3dc1c0ddeb0b..4b39ea955ef6070cdc5d575f58676191b845cde2 100644 (file)
@@ -2894,7 +2894,8 @@ ustatusline(void)
         Strcat(info, ", stunned");
     if (!u.usteed && Wounded_legs) {
         const char *what = body_part(LEG);
-        if ((Wounded_legs & BOTH_SIDES) == BOTH_SIDES)
+        if (((EWounded_legs & BOTH_SIDES) == BOTH_SIDES) ||
+            ((HWounded_legs & BOTH_SIDES) == BOTH_SIDES))
             what = makeplural(what);
         Sprintf(eos(info), ", injured %s", what);
     }