From 70e357b136a69b5ddbca1c44b2ab35b13b694484 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 6 Dec 2009 17:42:30 +0100 Subject: 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. --- src/game-server/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game-server/monster.cpp') 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 -- cgit v1.2.3-60-g2f50