From f1c364583bc647e7697e564bdaefd41e0caf3017 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Tue, 12 Feb 2008 14:20:34 +0000 Subject: Movement speed in monsters.xml is now interpreted as pixels per second instead of tiles per second. --- ChangeLog | 5 +++++ src/game-server/monstermanager.cpp | 6 +++--- 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 + + * 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 * 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 #"<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")) -- cgit v1.2.3-70-g09d2