diff --git a/GUI/host/textthread.cc b/GUI/host/textthread.cc index 8ee7192..b53d7f9 100644 --- a/GUI/host/textthread.cc +++ b/GUI/host/textthread.cc @@ -26,7 +26,7 @@ void TextThread::Flush() std::wstring sentence; { 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) { sentence = std::wstring((wchar_t*)buffer.data(), buffer.size() / 2);