Fix visual error related to moving the cursor on multi-line messages.

This commit is contained in:
Latapostrophe 2018-09-21 12:23:00 +02:00
parent 0bb24a392e
commit 4320e0f3a8

View file

@ -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;