Skip to content

Commit

Permalink
remove(ChatProcessor): Windows (needs fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
skuzzis committed Jan 5, 2025
1 parent e603fe8 commit ba2f05d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/chat/Chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit ba2f05d

Please sign in to comment.