From b79a26bc96b9bcc8f8d292ef99fa7869c2ef18de Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 15 Oct 2020 01:25:08 +0200 Subject: [PATCH] Clean up DrawHelp --- Source/help.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/help.cpp b/Source/help.cpp index 579cfcca5..ba01dff56 100644 --- a/Source/help.cpp +++ b/Source/help.cpp @@ -455,7 +455,11 @@ void DrawHelp() DrawSTextHelp(); DrawQTextBack(); +#ifdef HELLFIRE + PrintSString(0, 2, TRUE, "Hellfire Help", COL_GOLD, 0); +#else PrintSString(0, 2, TRUE, "Diablo Help", COL_GOLD, 0); +#endif DrawSLine(5); s = &gszHelpText[0]; @@ -513,7 +517,8 @@ void DrawHelp() s++; } tempstr[c] = *s; - w += fontkern[fontframe[gbFontTransTbl[(BYTE)tempstr[c]]]] + 1; + BYTE tc = gbFontTransTbl[(BYTE)tempstr[c]]; + w += fontkern[fontframe[tc]] + 1; c++; s++; }