Skip to content

Commit

Permalink
Fix: Status bar wasn't updating correctly with showdmg on .
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Oct 8, 2023
1 parent 549dd44 commit ccfdad2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hack.c
Original file line number Diff line number Diff line change
Expand Up @@ -3572,7 +3572,7 @@ maybe_wail()
* */
void
showdmg(n, yours)
register int n;
int n;
boolean yours;
{
if (!iflags.showdmg)
Expand Down
4 changes: 2 additions & 2 deletions src/mhitu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2806,7 +2806,6 @@ register struct attack *mattk;
* already at or below minimum threshold; do nothing */
context.botl = 1;
}

mdamageu(mtmp, dmg);
}

Expand Down Expand Up @@ -4368,7 +4367,6 @@ mdamageu(mtmp, n)
struct monst *mtmp;
int n;
{
context.botl = 1;
if (Invulnerable)
n = 0;
if (n == 0) {
Expand All @@ -4380,6 +4378,8 @@ int n;
n *= 2; /* Double Damage! */
}
showdmg(n, TRUE);
context.botl = 1;

if (Upolyd) {
u.mh -= n;
if (u.mh < 1)
Expand Down

0 comments on commit ccfdad2

Please sign in to comment.