- reset internal console state on clear CCMD

'last line needs update' flag cannot be set when console is empty as there are no lines at all in this case

https://forum.zdoom.org/viewtopic.php?t=64909

# Conflicts:
#	src/c_consolebuffer.cpp
This commit is contained in:
alexey.lysiuk 2019-06-03 13:12:57 +03:00 committed by drfrag
parent 6dd1d5eb38
commit ff92b4b5d7

View file

@ -259,6 +259,8 @@ void FConsoleBuffer::FormatText(FFont *formatfont, int displaywidth)
if (formatfont != mLastFont || displaywidth != mLastDisplayWidth || mBufferWasCleared)
{
FreeBrokenText();
if (mBufferWasCleared)
mLastLineNeedsUpdate = false;
m_BrokenConsoleText.Clear();
mBrokenStart.Clear();
mBrokenStart.Push(0);