summaryrefslogtreecommitdiff
path: root/src/monster.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-08-27 15:54:32 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-08-27 15:54:32 +0000
commit8ca48faeb472bb6645ec18c7b2e0480e8e20435e (patch)
treebbb93c24c6b3c27891890820d20cd75b39e1fe7a /src/monster.cpp
parent97cdacdaf3cfa0970597483d41838906125886bc (diff)
downloadmana-client-8ca48faeb472bb6645ec18c7b2e0480e8e20435e.tar.gz
mana-client-8ca48faeb472bb6645ec18c7b2e0480e8e20435e.tar.bz2
mana-client-8ca48faeb472bb6645ec18c7b2e0480e8e20435e.tar.xz
mana-client-8ca48faeb472bb6645ec18c7b2e0480e8e20435e.zip
Removed Being::mFrame field.
Diffstat (limited to 'src/monster.cpp')
-rw-r--r--src/monster.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/monster.cpp b/src/monster.cpp
index 8a7e2f32..26345a6c 100644
--- a/src/monster.cpp
+++ b/src/monster.cpp
@@ -40,9 +40,7 @@ Monster::logic()
{
if (mAction != STAND)
{
- mFrame = (get_elapsed_time(mWalkTime) * 4) / mWalkSpeed;
-
- if (mFrame >= 4 && mAction != MONSTER_DEAD)
+ if (get_elapsed_time(mWalkTime) >= mWalkSpeed && mAction != MONSTER_DEAD)
{
nextStep();
}