summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-08-27 16:23:36 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-08-27 16:23:36 +0000
commit1554a6749f2dbcd9b44aae1df3e320a06b049d4f (patch)
tree08efd4ca4dc8a81bb53894d138cf702fd1d40c55 /src/being.cpp
parent8ca48faeb472bb6645ec18c7b2e0480e8e20435e (diff)
downloadmana-1554a6749f2dbcd9b44aae1df3e320a06b049d4f.tar.gz
mana-1554a6749f2dbcd9b44aae1df3e320a06b049d4f.tar.bz2
mana-1554a6749f2dbcd9b44aae1df3e320a06b049d4f.tar.xz
mana-1554a6749f2dbcd9b44aae1df3e320a06b049d4f.zip
Cleaned the logic members.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index b49f790e..46fb67bb 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -285,6 +285,12 @@ Being::nextStep()
void
Being::logic()
{
+ // Determine whether the being should take another step
+ if (mAction == WALK && get_elapsed_time(mWalkTime) >= mWalkSpeed)
+ {
+ nextStep();
+ }
+
// Determine whether speech should still be displayed
if (get_elapsed_time(mSpeechTime) > 5000)
{