Cleanup assignment in while in ConsoleBufferPush()

This commit is contained in:
michaelangel007 2015-07-30 08:14:05 -07:00
parent b62758636b
commit 8aa8f347ae

View File

@ -279,8 +279,9 @@ bool ConsoleBufferPush ( const char * pText )
const char *pSrc = pText;
conchar_t *pDst = & g_aConsoleBuffer[ g_nConsoleBuffer ][ 0 ];
while ((x < CONSOLE_WIDTH) && (c = *pSrc))
while ((x < CONSOLE_WIDTH) && *pSrc)
{
c = *pSrc;
if ((c == '\n') || (x == (CONSOLE_WIDTH - 1)))
{
*pDst = 0;