summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 d56f7d9..e954a78 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 ca82331..b56d263 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"))