about summary refs log tree commit diff
path: root/src/game/server
diff options
context:
space:
mode:
authorxalduin <xalduin@gmail.com>2010-06-03 09:56:57 -0400
committerxalduin <xalduin@gmail.com>2010-06-03 09:56:57 -0400
commit8db32a4b8be19c62ef6d7c3056240a6d608171f6 (patch)
tree4e8d80edf9069f04ccccc2bd50237e02f72f05fa /src/game/server
parent6491dfc16cbe5bff4462dafd51485ecc2308c81c (diff)
downloadzcatch-8db32a4b8be19c62ef6d7c3056240a6d608171f6.tar.gz
zcatch-8db32a4b8be19c62ef6d7c3056240a6d608171f6.zip
Issue #88 flag pickup distance reduced
Diffstat (limited to 'src/game/server')
-rw-r--r--src/game/server/gamemodes/ctf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/server/gamemodes/ctf.cpp b/src/game/server/gamemodes/ctf.cpp
index 05eb973e..705d21ac 100644
--- a/src/game/server/gamemodes/ctf.cpp
+++ b/src/game/server/gamemodes/ctf.cpp
@@ -136,7 +136,7 @@ void CGameControllerCTF::Tick()
 		else
 		{
 			CCharacter *apCloseCCharacters[MAX_CLIENTS];
-			int Num = GameServer()->m_World.FindEntities(F->m_Pos, 32.0f, (CEntity**)apCloseCCharacters, MAX_CLIENTS, NETOBJTYPE_CHARACTER);
+			int Num = GameServer()->m_World.FindEntities(F->m_Pos, 32.0f-(float)g_CharPhysSize, (CEntity**)apCloseCCharacters, MAX_CLIENTS, NETOBJTYPE_CHARACTER);
 			for(int i = 0; i < Num; i++)
 			{
 				if(!apCloseCCharacters[i]->IsAlive() || apCloseCCharacters[i]->GetPlayer()->GetTeam() == -1 || GameServer()->Collision()->IntersectLine(F->m_Pos, apCloseCCharacters[i]->m_Pos, NULL, NULL))