From 4921c42d4cb5b29e03144f519afd038878438ae1 Mon Sep 17 00:00:00 2001 From: Antonio Martinez Date: Sat, 14 Sep 2024 05:40:39 -0700 Subject: [PATCH] Fix descriptive input rewriting color codes in Tutorial dialogue --- src/v_draw.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/v_draw.cpp b/src/v_draw.cpp index 2075a04ce..ba2c4dd86 100644 --- a/src/v_draw.cpp +++ b/src/v_draw.cpp @@ -147,7 +147,8 @@ Draw::TextElement& Draw::TextElement::parse(std::string_view raw) if (auto it = translation.find(code); it != translation.end()) { - if (cv_descriptiveinput.value) // Should we do game control translation? + // FIXME: This isn't how v_video.cpp checks for buttons and I don't know why. + if (cv_descriptiveinput.value && ((it->second & 0xF0) != 0x80)) // Should we do game control translation? { if (auto id = inputdefinition.find(it->second & (~0xF0)); id != inputdefinition.end()) // This is a game control, do descriptive input translation! {