diff options
Diffstat (limited to 'src/game-server/gamehandler.cpp')
-rw-r--r-- | src/game-server/gamehandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/gamehandler.cpp b/src/game-server/gamehandler.cpp index f9fcf5ec..07bf9ad1 100644 --- a/src/game-server/gamehandler.cpp +++ b/src/game-server/gamehandler.cpp @@ -135,11 +135,11 @@ static Character *findCharacterNear(Object *p, int id) MapComposite *map = p->getMap(); Point const &ppos = p->getPosition(); // TODO: use a less arbitrary value. - for (CharacterIterator i(map->getAroundPointIterator(ppos, 48)); i; ++i) + for (CharacterIterator i(map->getAroundPointIterator(ppos, 64)); i; ++i) { Character *o = *i; if (o->getPublicID() != id) continue; - return ppos.inRangeOf(o->getPosition(), 48) ? o : NULL; + return ppos.inRangeOf(o->getPosition(), 64) ? o : NULL; } return NULL; } |