summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRedix <redix@hotmail.de>2017-10-20 00:23:03 +0200
committerRedix <redix@hotmail.de>2017-10-20 00:25:27 +0200
commitbe6874bc8a445676743ae64544537842b3df542c (patch)
tree999e9280ae151433698dc4d8ebcaf2433a88d27f
parente00293036858e1b57cb719de2f78ec957e6ae92d (diff)
Fix mirrored ghost icon
-rw-r--r--src/game/client/components/menus_ingame.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp
index 3adb5d06e..843e95a6e 100644
--- a/src/game/client/components/menus_ingame.cpp
+++ b/src/game/client/components/menus_ingame.cpp
@@ -993,6 +993,9 @@ void CMenus::RenderGhost(CUIRect MainView)
int NewSelected = -1;
+ CServerInfo ServerInfo;
+ Client()->GetServerInfo(&ServerInfo);
+
for (int i = 0; i < NumGhosts; i++)
{
const CGhostItem *pItem = &m_lGhosts[i];
@@ -1051,7 +1054,7 @@ void CMenus::RenderGhost(CUIRect MainView)
Graphics()->QuadsBegin();
RenderTools()->SelectSprite(SPRITE_OOP + 7);
IGraphics::CQuadItem QuadItem(Button.x+Button.w/2, Button.y+Button.h/2, 20.0f, 20.0f);
- if(m_pClient->m_pGhost->IsMirrored(pItem->m_Slot))
+ if(m_pClient->m_pGhost->IsMirrored(pItem->m_Slot) && IsFastCap(&ServerInfo))
QuadItem.m_Width = -QuadItem.m_Width;
Graphics()->QuadsDraw(&QuadItem, 1);