From 9ead551b98207ac3957d71e1f2d7c8088dab1224 Mon Sep 17 00:00:00 2001 From: Arda Demir Date: Wed, 7 Oct 2020 22:04:07 +0300 Subject: [PATCH] Render afk emote instead of chat emote --- src/game/client/components/players.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/players.cpp b/src/game/client/components/players.cpp index 2bf8f30a8..cb0570272 100644 --- a/src/game/client/components/players.cpp +++ b/src/game/client/components/players.cpp @@ -564,7 +564,7 @@ void CPlayers::RenderPlayer( RenderTools()->RenderTee(&State, &RenderInfo, Player.m_Emote, Direction, Position); int QuadOffsetToEmoticon = NUM_WEAPONS * 2 + 2 + 2; - if(Player.m_PlayerFlags & PLAYERFLAG_CHATTING) + if((Player.m_PlayerFlags & PLAYERFLAG_CHATTING) && !m_pClient->m_aClients[ClientID].m_Afk) { Graphics()->TextureSet(g_pData->m_aImages[IMAGE_EMOTICONS].m_Id); int QuadOffset = QuadOffsetToEmoticon + (SPRITE_DOTDOT - SPRITE_OOP); @@ -578,7 +578,7 @@ void CPlayers::RenderPlayer( if(ClientID < 0) return; - if(g_Config.m_ClAfkEmote && m_pClient->m_aClients[ClientID].m_Afk && !(Player.m_PlayerFlags & PLAYERFLAG_CHATTING) && !(Client()->DummyConnected() && ClientID == m_pClient->m_LocalIDs[!g_Config.m_ClDummy])) + if(g_Config.m_ClAfkEmote && m_pClient->m_aClients[ClientID].m_Afk && !(Client()->DummyConnected() && ClientID == m_pClient->m_LocalIDs[!g_Config.m_ClDummy])) { Graphics()->TextureSet(g_pData->m_aImages[IMAGE_EMOTICONS].m_Id); int QuadOffset = QuadOffsetToEmoticon + (SPRITE_ZZZ - SPRITE_OOP);