summaryrefslogtreecommitdiff
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--src/game-server/monstermanager.cpp6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d56f7d91..e954a788 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-13 Philipp Sehmisch <tmw@crushnet.org>
+
+ * src/game-server/monstermanager.cpp: Movement speed in monsters.xml
+ is now interpreted as pixels per second instead of tiles per second.
+
2008-02-12 Philipp Sehmisch <tmw@crushnet.org>
* src/gameserver/monster.cpp, src/game-server/monster.hpp,
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"))