From 4320e0f3a8e9edec4e8f5b94d8e78227ca282233 Mon Sep 17 00:00:00 2001 From: Latapostrophe Date: Fri, 21 Sep 2018 12:23:00 +0200 Subject: [PATCH] Fix visual error related to moving the cursor on multi-line messages. --- src/hu_stuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 794a89d7..cab5937c 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -1565,7 +1565,7 @@ static void HU_DrawChat(void) if (hu_tick < 4) V_DrawChatCharacter(cursorx, cursory+1, '_' |V_SNAPTOBOTTOM|V_SNAPTOLEFT|t, !cv_allcaps.value, NULL); - if (cursorx == chatx+1) // a weirdo hack + if (cursorx == chatx+1 && strlen(w_chat) == i) // a weirdo hack { typelines += 1; skippedline = true;