From d8a068c97b3e98b918d31360ad84c5b22f43c249 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Wed, 13 Jul 2022 21:46:39 +0200 Subject: [PATCH] fix line height in HUlib_eraseTextLine() --- src/hu_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hu_lib.c b/src/hu_lib.c index 91c5a4fc..bce744de 100644 --- a/src/hu_lib.c +++ b/src/hu_lib.c @@ -209,7 +209,7 @@ void HUlib_eraseTextLine(hu_textline_t* l) if (!automapactive && viewwindowx && l->needsupdate) { - int yoffset, lh = SHORT(l->f[0]->height) + 1; + int yoffset, lh = SHORT(l->f['A'-HU_FONTSTART]->height) + 1; for (y=l->y,yoffset=y*SCREENWIDTH ; yy+lh ; y++,yoffset+=SCREENWIDTH) if (y < viewwindowy || y >= viewwindowy + scaledviewheight) // killough 11/98: R_VideoErase(yoffset, SCREENWIDTH); // erase entire line