about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-12-12 01:55:36 +0100
committeroy <Tom_Adams@web.de>2010-12-12 01:55:36 +0100
commitb4c007778cab749e9d163baec64d22349435ea3f (patch)
tree148d059effebf2020a45e69692ab06f0839762ce /src
parent369e22cd4e8f647900f52d7f625dc1a106201018 (diff)
downloadzcatch-b4c007778cab749e9d163baec64d22349435ea3f.tar.gz
zcatch-b4c007778cab749e9d163baec64d22349435ea3f.zip
fixed that IntersectCharacter picks the character which is closest to the start point and within the radius
Diffstat (limited to 'src')
-rw-r--r--src/game/server/gameworld.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/server/gameworld.cpp b/src/game/server/gameworld.cpp
index 6a66d526..e2d08ed6 100644
--- a/src/game/server/gameworld.cpp
+++ b/src/game/server/gameworld.cpp
@@ -188,6 +188,7 @@ CCharacter *CGameWorld::IntersectCharacter(vec2 Pos0, vec2 Pos1, float Radius, v
 		float Len = distance(p->m_Pos, IntersectPos);
 		if(Len < p->m_ProximityRadius+Radius)
 		{
+			Len = distance(Pos0, IntersectPos);
 			if(Len < ClosestLen)
 			{
 				NewPos = IntersectPos;