diff options
| author | oy <Tom_Adams@web.de> | 2010-12-12 01:55:36 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-12-12 01:55:36 +0100 |
| commit | b4c007778cab749e9d163baec64d22349435ea3f (patch) | |
| tree | 148d059effebf2020a45e69692ab06f0839762ce | |
| parent | 369e22cd4e8f647900f52d7f625dc1a106201018 (diff) | |
| download | zcatch-b4c007778cab749e9d163baec64d22349435ea3f.tar.gz zcatch-b4c007778cab749e9d163baec64d22349435ea3f.zip | |
fixed that IntersectCharacter picks the character which is closest to the start point and within the radius
| -rw-r--r-- | src/game/server/gameworld.cpp | 1 |
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; |