diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-02 21:09:40 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-02 21:09:40 +0100 |
commit | 070962fb8a09e86a26fe6f1d517ff94787675489 (patch) | |
tree | daaf4fd728aa95a989cba567e3e019e872255222 | |
parent | Revert "Another Linux fix" (diff) | |
download | cuberite-070962fb8a09e86a26fe6f1d517ff94787675489.tar cuberite-070962fb8a09e86a26fe6f1d517ff94787675489.tar.gz cuberite-070962fb8a09e86a26fe6f1d517ff94787675489.tar.bz2 cuberite-070962fb8a09e86a26fe6f1d517ff94787675489.tar.lz cuberite-070962fb8a09e86a26fe6f1d517ff94787675489.tar.xz cuberite-070962fb8a09e86a26fe6f1d517ff94787675489.tar.zst cuberite-070962fb8a09e86a26fe6f1d517ff94787675489.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Log.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Log.cpp b/src/Log.cpp index 44dab33c9..b246e8196 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -135,7 +135,6 @@ bool cLog::LogReplaceLine(const char * a_Format, va_list argList) __android_log_print(ANDROID_LOG_ERROR, "MCServer", "%s", Line.c_str()); //CallJavaFunction_Void_String(g_JavaThread, "AddToLog", Line ); #else -#ifdef _WIN32 size_t LineLength = Line.length(); if (m_LastStringSize == 0) @@ -151,7 +150,7 @@ bool cLog::LogReplaceLine(const char * a_Format, va_list argList) printf("\n%s", Line.c_str()); // We are at line to be replaced, but since we can't, add a new line return false; } - +#ifdef _WIN32 if (LineLength < m_LastStringSize) // If last printed line was longer than current, clear this line { for (size_t X = 0; X != m_LastStringSize + 1; ++X) |