From 9bd4a933cf26dc1731022bf067961af67d5918b0 Mon Sep 17 00:00:00 2001 From: Indev Date: Sun, 29 Jun 2025 00:30:24 +0300 Subject: [PATCH] Check if text is inside chat log box for emotes --- src/hu_stuff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index e125a7b7e..6e3064098 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -1752,7 +1752,8 @@ static void HU_drawChatLog(INT32 offset) } else if (msg[j] == ':' && (emote = M_VerifyEmote(msg+j, &emotelen))) { - dx += HU_DrawEmote(x+dx+2, y+dy, emote, V_SNAPTOBOTTOM|V_SNAPTOLEFT) - charwidth; + if ((y+dy+2 >= chat_topy) && (y+dy < (chat_bottomy))) + dx += HU_DrawEmote(x+dx+2, y+dy, emote, V_SNAPTOBOTTOM|V_SNAPTOLEFT) - charwidth; j += emotelen; } else