From 31272cafa06774c017982b6534bae86dc14d6a54 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Wed, 21 Feb 2024 21:55:08 -0700 Subject: [PATCH] AddMessage fixes --- src/k_hud.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/k_hud.cpp b/src/k_hud.cpp index acfa84f7b..7eb39841f 100644 --- a/src/k_hud.cpp +++ b/src/k_hud.cpp @@ -5874,6 +5874,7 @@ static void K_DrawMessageFeed(void) Draw::TextElement text(submsg); text.font(Draw::Font::kMenu); + submsg = text.parse(submsg).string(); UINT8 x = 160; UINT8 y = 10; @@ -5899,7 +5900,7 @@ static void K_DrawMessageFeed(void) if (i >= 1) y += BASEVIDHEIGHT / 2; } - UINT8 sw = text.width(); + UINT16 sw = text.width(); K_DrawSticker(x - sw/2, y, sw, 0, true); Draw(x, y+shift).align(Draw::Align::kCenter).text(text);