From ba2f05df47a5269c4455049d3078fa535287f97b Mon Sep 17 00:00:00 2001 From: skuzzis Date: Sun, 5 Jan 2025 16:05:18 +0200 Subject: [PATCH] remove(ChatProcessor): Windows (needs fix) --- src/server/chat/Chat.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/chat/Chat.cpp b/src/server/chat/Chat.cpp index ee582c1c..1f66577b 100644 --- a/src/server/chat/Chat.cpp +++ b/src/server/chat/Chat.cpp @@ -154,6 +154,7 @@ std::string formatPlayerMessage(Player* player, CCSPlayerController* controller, } void ChatProcessor::PostEvent(CSplitScreenSlot nSlot, bool bLocalOnly, int nClientCount, const uint64* clients, INetworkMessageInternal* pEvent, const CNetMessage* pData, unsigned long nSize, NetChannelBufType_t bufType) { +#ifndef _WIN32 if (pEvent->GetNetMessageInfo()->m_MessageId == 118) { PluginUserMessage um(pEvent, (CNetMessage*)pData, (uint64*)clients); Player* player = g_playerManager->GetPlayer(um.GetInt32("entityindex") - 1); @@ -180,6 +181,7 @@ void ChatProcessor::PostEvent(CSplitScreenSlot nSlot, bool bLocalOnly, int nClie um.SetString("msg_name", formatPlayerMessage(player, controller, it->second.c_str(), um.GetRepeatedString("params", 2), true).c_str()); } } +#endif } bool OnClientCommand(int playerid, std::string command);