From d9c71f49f37afe0403d1dbe6b3b6f6ae5daebac7 Mon Sep 17 00:00:00 2001 From: Yoyo117 Date: Sat, 25 Dec 2010 23:43:05 +0100 Subject: [PATCH] minor improvement --- src/game/client/components/killmessages.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/client/components/killmessages.cpp b/src/game/client/components/killmessages.cpp index 5ca404056..80f0725e1 100644 --- a/src/game/client/components/killmessages.cpp +++ b/src/game/client/components/killmessages.cpp @@ -51,10 +51,9 @@ void CKillMessages::OnRender() float StartX = Width*1.5f-10.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+1)%MAX_KILLMSGS; + int r = (m_KillmsgCurrent+i)%MAX_KILLMSGS; if(Client()->GameTick() > m_aKillmsgs[r].m_Tick+50*10) continue;