about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYoyo117 <jpshadow@web.de>2010-12-25 23:43:05 +0100
committeroy <Tom_Adams@web.de>2011-01-02 19:58:06 +0100
commitd9c71f49f37afe0403d1dbe6b3b6f6ae5daebac7 (patch)
treedbb9d95736084aeb20c75131e1c0a3170bc63694
parentcbc76c924750c4614d8fb99659c0f9bf7258d86f (diff)
downloadzcatch-d9c71f49f37afe0403d1dbe6b3b6f6ae5daebac7.tar.gz
zcatch-d9c71f49f37afe0403d1dbe6b3b6f6ae5daebac7.zip
minor improvement
-rw-r--r--src/game/client/components/killmessages.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/client/components/killmessages.cpp b/src/game/client/components/killmessages.cpp
index 5ca40405..80f0725e 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;