Skip to content
Permalink
Browse files

Fix #1223: double chat messages if player is in team (#1224)

  • Loading branch information
xLuxy authored and qaisjp committed Jan 24, 2020
1 parent 2d8963e commit 24a233f6e897771504a270940e05ccc4652bce53
Showing with 6 additions and 3 deletions.
  1. +6 −3 Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
@@ -9819,9 +9819,7 @@ bool CStaticFunctionDefinitions::OutputChatBox(const char* szText, CElement* pEl
{
assert(pElement);
assert(szText);

RUN_CHILDREN(OutputChatBox(szText, *iter, ucRed, ucGreen, ucBlue, bColorCoded, pLuaMain))


if (IS_PLAYER(pElement))
{
CPlayer* pPlayer = static_cast<CPlayer*>(pElement);
@@ -9839,6 +9837,11 @@ bool CStaticFunctionDefinitions::OutputChatBox(const char* szText, CElement* pEl
}
return true;
}
else
{
// Fixes issue 1223: https://github.com/multitheftauto/mtasa-blue/issues/1223 (Luxy.c)
RUN_CHILDREN(OutputChatBox(szText, *iter, ucRed, ucGreen, ucBlue, bColorCoded, pLuaMain))
}

if (pElement == m_pMapManager->GetRootElement())
{

0 comments on commit 24a233f

Please sign in to comment.
You can’t perform that action at this time.