1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Fix: Chat history in wrong order, doesn't pop up

This commit is contained in:
Cory Sanin
2023-03-15 03:57:05 -05:00
committed by GitHub
parent b41438bbc9
commit a102688f5c

View File

@@ -222,12 +222,12 @@ void ChatAddHistory(std::string_view s)
if (_chatHistory.size() >= CHAT_HISTORY_SIZE)
{
_chatHistory.pop_front();
_chatHistoryTime.pop_front();
_chatHistory.pop_back();
_chatHistoryTime.pop_back();
}
_chatHistory.push_back(buffer);
_chatHistoryTime.push_back(Platform::GetTicks());
_chatHistory.push_front(buffer);
_chatHistoryTime.push_front(Platform::GetTicks());
// Log to file (src only as logging does its own timestamp)
NetworkAppendChatLog(s);