diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-02 21:09:56 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-02 21:09:56 +0100 |
commit | dd3cc733ae882d029eaab093113783fb1c91113a (patch) | |
tree | 7d2f4667a441d7ae9d0daccddbb78d17651e1702 /src/MCLogger.cpp | |
parent | Revert "A newline issue is resolved" (diff) | |
download | cuberite-dd3cc733ae882d029eaab093113783fb1c91113a.tar cuberite-dd3cc733ae882d029eaab093113783fb1c91113a.tar.gz cuberite-dd3cc733ae882d029eaab093113783fb1c91113a.tar.bz2 cuberite-dd3cc733ae882d029eaab093113783fb1c91113a.tar.lz cuberite-dd3cc733ae882d029eaab093113783fb1c91113a.tar.xz cuberite-dd3cc733ae882d029eaab093113783fb1c91113a.tar.zst cuberite-dd3cc733ae882d029eaab093113783fb1c91113a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/MCLogger.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/MCLogger.cpp b/src/MCLogger.cpp index 0828b7fe4..b7b826374 100644 --- a/src/MCLogger.cpp +++ b/src/MCLogger.cpp @@ -147,11 +147,7 @@ void cMCLogger::Log(const char * a_Format, va_list a_ArgList, bool a_ShouldRepla SetConsoleCursorPosition(Output, Position); SetColor(csRegular); - if (!m_Log->LogReplaceLine(a_Format, a_ArgList)) - { - m_BeginLineUpdate = false; - puts(""); - } + m_Log->Log(a_Format, a_ArgList, a_ShouldReplaceLine); ResetColor(); Position = { 0, csbi.dwCursorPosition.Y }; // Set cursor to original position @@ -159,18 +155,14 @@ void cMCLogger::Log(const char * a_Format, va_list a_ArgList, bool a_ShouldRepla #else // _WIN32 fputs("\033[1A", stdout); // Move cursor up one line SetColor(csRegular); - if (!m_Log->LogReplaceLine(a_Format, a_ArgList)) - { - m_BeginLineUpdate = false; - puts(""); - } + m_Log->Log(a_Format, a_ArgList, a_ShouldReplaceLine); ResetColor(); #endif } else { SetColor(csRegular); - m_Log->Log(a_Format, a_ArgList); + m_Log->Log(a_Format, a_ArgList, a_ShouldReplaceLine); ResetColor(); puts(""); } |