Skip to content

Commit

Permalink
Fix mirrored ghost icon
Browse files Browse the repository at this point in the history
  • Loading branch information
axblk committed Oct 19, 2017
1 parent e002930 commit be6874b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/client/components/menus_ingame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit be6874b

Please sign in to comment.