diff options
author | David Athay <ko2fan@gmail.com> | 2008-04-16 16:01:28 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-04-16 16:01:28 +0000 |
commit | 401033859448e3706312192c9b6a85cf93b84a44 (patch) | |
tree | 067dd87ac4c97e9e9fc63b9fd0efc60644322791 /src/game-server/gamehandler.cpp | |
parent | 206191086403006db4472d849e9bcf3eaf7f15d0 (diff) | |
download | manaserv-401033859448e3706312192c9b6a85cf93b84a44.tar.gz manaserv-401033859448e3706312192c9b6a85cf93b84a44.tar.bz2 manaserv-401033859448e3706312192c9b6a85cf93b84a44.tar.xz manaserv-401033859448e3706312192c9b6a85cf93b84a44.zip |
Added handling creating and leaving
parties. Fixed up some of the private channel stuff that remained.
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; } |