mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
Fixed DDRace hud.cpp
This commit is contained in:
parent
6bedea0c6a
commit
b68f5facea
|
@ -444,14 +444,14 @@ void CHud::OnRender()
|
||||||
if(g_Config.m_ClShowhud)
|
if(g_Config.m_ClShowhud)
|
||||||
{
|
{
|
||||||
if(m_pClient->m_Snap.m_pLocalCharacter && !(m_pClient->m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_GAMEOVER))
|
if(m_pClient->m_Snap.m_pLocalCharacter && !(m_pClient->m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_GAMEOVER))
|
||||||
|
{
|
||||||
RenderHealthAndAmmo(m_pClient->m_Snap.m_pLocalCharacter);
|
RenderHealthAndAmmo(m_pClient->m_Snap.m_pLocalCharacter);
|
||||||
|
RenderDDRaceEffects();
|
||||||
|
}
|
||||||
else if(m_pClient->m_Snap.m_SpecInfo.m_Active)
|
else if(m_pClient->m_Snap.m_SpecInfo.m_Active)
|
||||||
{
|
{
|
||||||
if(m_pClient->m_Snap.m_SpecInfo.m_SpectatorID != SPEC_FREEVIEW)
|
if(m_pClient->m_Snap.m_SpecInfo.m_SpectatorID != SPEC_FREEVIEW)
|
||||||
{
|
|
||||||
RenderHealthAndAmmo(&m_pClient->m_Snap.m_aCharacters[m_pClient->m_Snap.m_SpecInfo.m_SpectatorID].m_Cur);
|
RenderHealthAndAmmo(&m_pClient->m_Snap.m_aCharacters[m_pClient->m_Snap.m_SpecInfo.m_SpectatorID].m_Cur);
|
||||||
RenderDDRaceEffects();
|
|
||||||
}
|
|
||||||
RenderSpectatorHud();
|
RenderSpectatorHud();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue