summaryrefslogtreecommitdiff
path: root/src/game-server/monster.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2009-12-06 17:42:30 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2009-12-06 17:42:30 +0100
commit70e357b136a69b5ddbca1c44b2ab35b13b694484 (patch)
tree70866aa157eeb6ab113d29652da19636926d525b /src/game-server/monster.cpp
parentfe116c52a7fafc3ad61d14263dd60bc8e7acecdd (diff)
downloadmanaserv-70e357b136a69b5ddbca1c44b2ab35b13b694484.tar.gz
manaserv-70e357b136a69b5ddbca1c44b2ab35b13b694484.tar.bz2
manaserv-70e357b136a69b5ddbca1c44b2ab35b13b694484.tar.xz
manaserv-70e357b136a69b5ddbca1c44b2ab35b13b694484.zip
Fixed the default visual range
The client is 800x600 by default, so 320 pixels radius was not enough. Taking into account a bit of network latency as well, 448 should be alright.
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r--src/game-server/monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp
index c05fd418..80357864 100644
--- a/src/game-server/monster.cpp
+++ b/src/game-server/monster.cpp
@@ -187,7 +187,7 @@ void Monster::update()
Direction bestAttackDirection = DIRECTION_DOWN;
// Iterate through objects nearby
- int aroundArea = Configuration::getValue("visualRange", 320);
+ int aroundArea = Configuration::getValue("visualRange", 448);
for (BeingIterator i(getMap()->getAroundBeingIterator(this, aroundArea)); i; ++i)
{
// We only want to attack player characters