Skip to content

Commit f4a05b5

Browse files
authored
[GEN][ZH] Fix broken Player muting for Observer (#1307)
1 parent edb0614 commit f4a05b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ void ConnectionManager::processChat(NetChatCommandMsg *msg)
661661

662662
Bool fromObserver = !player->isPlayerActive();
663663
Bool amIObserver = !ThePlayerList->getLocalPlayer()->isPlayerActive();
664-
Bool canSeeChat = amIObserver || !fromObserver && !TheGameInfo->getConstSlot(playerID)->isMuted();
664+
Bool canSeeChat = (amIObserver || !fromObserver) && !TheGameInfo->getConstSlot(playerID)->isMuted();
665665

666666
if ( ((1<<m_localSlot) & msg->getPlayerMask() ) && canSeeChat )
667667
{

GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ void ConnectionManager::processChat(NetChatCommandMsg *msg)
661661

662662
Bool fromObserver = !player->isPlayerActive();
663663
Bool amIObserver = !ThePlayerList->getLocalPlayer()->isPlayerActive();
664-
Bool canSeeChat = amIObserver || !fromObserver && !TheGameInfo->getConstSlot(playerID)->isMuted();
664+
Bool canSeeChat = (amIObserver || !fromObserver) && !TheGameInfo->getConstSlot(playerID)->isMuted();
665665

666666
if ( ((1<<m_localSlot) & msg->getPlayerMask() ) && canSeeChat )
667667
{

0 commit comments

Comments
 (0)