super embarassing bugfix

This commit is contained in:
Akash Mozumdar 2018-08-31 12:17:04 -04:00
parent 4f1bc5a9b2
commit 4854cd35f1

View File

@ -26,7 +26,7 @@ void TextThread::Flush()
std::wstring sentence; std::wstring sentence;
{ {
LOCK(ttMutex); LOCK(ttMutex);
if (buffer.size() < 400 && (timestamp - GetTickCount() < 250 || buffer.size() == 0)) return; // TODO: let user change delay before sentence is flushed if (buffer.size() < 400 && (GetTickCount() - timestamp < 250 || buffer.size() == 0)) return; // TODO: let user change delay before sentence is flushed
if (status & USING_UNICODE) if (status & USING_UNICODE)
{ {
sentence = std::wstring((wchar_t*)buffer.data(), buffer.size() / 2); sentence = std::wstring((wchar_t*)buffer.data(), buffer.size() / 2);