mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
minor improvement
This commit is contained in:
parent
cbc76c9247
commit
d9c71f49f3
|
@ -51,10 +51,9 @@ void CKillMessages::OnRender()
|
||||||
float StartX = Width*1.5f-10.0f;
|
float StartX = Width*1.5f-10.0f;
|
||||||
float y = 20.0f;
|
float y = 20.0f;
|
||||||
|
|
||||||
for(int i = 0; i < MAX_KILLMSGS; i++)
|
for(int i = 1; i <= MAX_KILLMSGS; i++)
|
||||||
{
|
{
|
||||||
|
int r = (m_KillmsgCurrent+i)%MAX_KILLMSGS;
|
||||||
int r = (m_KillmsgCurrent+i+1)%MAX_KILLMSGS;
|
|
||||||
if(Client()->GameTick() > m_aKillmsgs[r].m_Tick+50*10)
|
if(Client()->GameTick() > m_aKillmsgs[r].m_Tick+50*10)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue