From fb8955dd5c5a1063e399f2f2d5fe3301c113c58a Mon Sep 17 00:00:00 2001 From: qndel Date: Sat, 10 Oct 2020 01:47:49 +0200 Subject: [PATCH] control_print_talk_msg cleanup --- Source/control.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/control.cpp b/Source/control.cpp index 97aec3bed..ca176acca 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -2669,7 +2669,8 @@ char *control_print_talk_msg(char *msg, int x, int y, int *nOffset, int color) *nOffset = PitchTbl[y] + x; while (*msg) { - c = fontframe[gbFontTransTbl[(BYTE)*msg]]; + c = gbFontTransTbl[(BYTE)*msg]; + c = fontframe[c]; width += fontkern[c] + 1; if (width > 450 + PANEL_X) return msg;