1110: Fix killmessage flag render r=def- a=Jupeyy



Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
bors[bot] 2018-04-09 20:28:24 +00:00
commit 73cc3a147b
2 changed files with 4 additions and 1 deletions

View file

@ -1596,6 +1596,9 @@ public:
// render non outlined
Graphics()->QuadsDrawCurrentVertices(false);
// reset
Graphics()->SetColor(1.f, 1.f, 1.f, 1.f);
}
}

View file

@ -205,7 +205,7 @@ void CKillMessages::OnRender()
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_GAME].m_Id);
int QuadOffset = 2;
if(m_aKillmsgs[r].m_VictimTeam == TEAM_RED)
if(m_aKillmsgs[r].m_KillerTeam == TEAM_RED)
++QuadOffset;
Graphics()->RenderQuadContainerAsSprite(m_SpriteQuadContainerIndex, QuadOffset, x - 56, y - 16);