summaryrefslogtreecommitdiff
path: root/src/monster.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-02-09 01:42:50 +0100
committerBertram <bertram@cegetel.net>2010-02-09 01:42:50 +0100
commit56f501c8148b1061a02547d37b20eeeeb64029db (patch)
tree718e48289066706bc3851830f3c6b03150e66b97 /src/monster.cpp
parent8b4d9f9b5eaf175baf0c4209c312133bb457742c (diff)
downloadmana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.gz
mana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.bz2
mana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.xz
mana-56f501c8148b1061a02547d37b20eeeeb64029db.zip
Made the Beings' logic be able to handle any tile height/width.
This is the First step to get rid of most hardcoded 32 values.
Diffstat (limited to 'src/monster.cpp')
-rw-r--r--src/monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monster.cpp b/src/monster.cpp
index 7d0d7ab0..0d0757dd 100644
--- a/src/monster.cpp
+++ b/src/monster.cpp
@@ -75,7 +75,7 @@ void Monster::logic()
{
if ((Net::getNetworkType() == ServerInfo::EATHENA) && (mAction != STAND))
{
- mFrame = (int) ((get_elapsed_time(mWalkTime) * 4) / getWalkSpeed());
+ mFrame = (int) ((get_elapsed_time(mWalkTime) * 4) / getWalkSpeed().x);
if (mFrame >= 4 && mAction != DEAD)
nextTile();