about summary refs log tree commit diff
path: root/src/game/client/components
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-07-05 23:15:24 +0200
committeroy <Tom_Adams@web.de>2011-07-05 23:15:24 +0200
commitac9c3b8f7f26b3b1676345ddca82272fd31fc0ff (patch)
tree51851499a7d3f993a4a997660504e38b3395853e /src/game/client/components
parentab1f7d6f95346c7bf86dfbdfa015c7e850097918 (diff)
downloadzcatch-ac9c3b8f7f26b3b1676345ddca82272fd31fc0ff.tar.gz
zcatch-ac9c3b8f7f26b3b1676345ddca82272fd31fc0ff.zip
made the dropped flag sign blink faster the last 5 seconds to indicate that it's about to return. Closes #631
Diffstat (limited to 'src/game/client/components')
-rw-r--r--src/game/client/components/hud.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/client/components/hud.cpp b/src/game/client/components/hud.cpp
index 58fc75b9..11343912 100644
--- a/src/game/client/components/hud.cpp
+++ b/src/game/client/components/hud.cpp
@@ -108,7 +108,9 @@ void CHud::RenderScoreHud()
 
 				if(GameFlags&GAMEFLAG_FLAGS)
 				{
-					if(FlagCarrier[t] == FLAG_ATSTAND || (FlagCarrier[t] == FLAG_TAKEN && ((Client()->GameTick()/10)&1)))
+					int BlinkTimer = (m_pClient->m_FlagDropTick[t] != 0 && 
+										(Client()->GameTick()-m_pClient->m_FlagDropTick[t])/Client()->GameTickSpeed() >= 25) ? 10 : 20;
+					if(FlagCarrier[t] == FLAG_ATSTAND || (FlagCarrier[t] == FLAG_TAKEN && ((Client()->GameTick()/BlinkTimer)&1)))
 					{
 						// draw flag
 						Graphics()->BlendNormal();