Merge branch 'NetHack:NetHack-3.7' into NetHack-3.7

This commit is contained in:
RainRat
2024-04-11 18:29:38 -07:00
committed by GitHub
6 changed files with 60 additions and 26 deletions

View File

@@ -1902,6 +1902,19 @@ bl_idx_to_fldname(int idx)
return (const char *) 0;
}
/* used when rendering hitpointbar; inoutbuf[] has been padded with
trailing spaces; replace pairs of spaces with pairs of space+dash */
void
repad_with_dashes(char *inoutbuf)
{
char *p = eos(inoutbuf);
while (p >= inoutbuf + 2 && p[-1] == ' ' && p[-2] == ' ') {
p[-1] = '-';
p -= 2;
}
}
#ifdef STATUS_HILITES
/****************************************************************************/