summaryrefslogtreecommitdiff
path: root/src/game-server
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-02-12 14:20:34 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-02-12 14:20:34 +0000
commitf1c364583bc647e7697e564bdaefd41e0caf3017 (patch)
tree9473501035f25f4b7051dbe7db2ad6a1c784d9ec /src/game-server
parentf03e1cb4ce24e92fa3756d7b9aa9131853783810 (diff)
downloadmanaserv-f1c364583bc647e7697e564bdaefd41e0caf3017.tar.gz
manaserv-f1c364583bc647e7697e564bdaefd41e0caf3017.tar.bz2
manaserv-f1c364583bc647e7697e564bdaefd41e0caf3017.tar.xz
manaserv-f1c364583bc647e7697e564bdaefd41e0caf3017.zip
Movement speed in monsters.xml is now interpreted as pixels per second instead of tiles per second.
Diffstat (limited to 'src/game-server')
-rw-r--r--src/game-server/monstermanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/monstermanager.cpp b/src/game-server/monstermanager.cpp
index ca823310..b56d263d 100644
--- a/src/game-server/monstermanager.cpp
+++ b/src/game-server/monstermanager.cpp
@@ -167,9 +167,9 @@ void MonsterManager::reload()
if (!attributesComplete) LOG_WARN(monsterReferenceFile
<<": Attributes incomplete for monster #"<<id);
- //for usability reasons we set the speed in the monsters.xml as tiles per second
- //instead of miliseconds per tile.
- monster->setSpeed(1000/speed);
+ //for usability reasons we set the speed in the monsters.xml as pixels
+ //per second instead of miliseconds per tile.
+ monster->setSpeed(32000/speed);
}
else if (xmlStrEqual(subnode->name, BAD_CAST "exp"))