diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-27 16:23:36 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-27 16:23:36 +0000 |
commit | 1554a6749f2dbcd9b44aae1df3e320a06b049d4f (patch) | |
tree | 08efd4ca4dc8a81bb53894d138cf702fd1d40c55 /src/being.cpp | |
parent | 8ca48faeb472bb6645ec18c7b2e0480e8e20435e (diff) | |
download | mana-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.cpp | 6 |
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) { |