From 27fcf8999fe2891892ce3e48f6525130ab4d21d3 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sun, 24 Oct 2021 21:41:49 -0400 Subject: [PATCH] re-do the wounded legs fix --- src/insight.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/insight.c b/src/insight.c index 4b39ea955..14d7f6597 100644 --- a/src/insight.c +++ b/src/insight.c @@ -2893,9 +2893,10 @@ ustatusline(void) if (Stunned) Strcat(info, ", stunned"); if (!u.usteed && Wounded_legs) { + long legs = (EWounded_legs | HWounded_legs); const char *what = body_part(LEG); - if (((EWounded_legs & BOTH_SIDES) == BOTH_SIDES) || - ((HWounded_legs & BOTH_SIDES) == BOTH_SIDES)) + + if ((legs & BOTH_SIDES) == BOTH_SIDES) what = makeplural(what); Sprintf(eos(info), ", injured %s", what); }