diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 17:42:30 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 17:42:30 +0100 |
commit | 70e357b136a69b5ddbca1c44b2ab35b13b694484 (patch) | |
tree | 70866aa157eeb6ab113d29652da19636926d525b | |
parent | fe116c52a7fafc3ad61d14263dd60bc8e7acecdd (diff) | |
download | manaserv-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.
-rw-r--r-- | docs/manaserv.xml | 2 | ||||
-rw-r--r-- | src/game-server/monster.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/manaserv.xml b/docs/manaserv.xml index 6b22546a..e98b9bd0 100644 --- a/docs/manaserv.xml +++ b/docs/manaserv.xml @@ -72,7 +72,7 @@ <option name="net_gameServerPort" value="9604"/> <!-- Gameplay-related config option--> - <option name="visualRange" value="320"/> + <option name="visualRange" value="448"/> <option name="respawnMap" value="4"/> <option name="respawnX" value="1000"/> <option name="respawnY" value="1000"/> 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 |