diff options
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 7dfe9d9b6..252de4c3b 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -1481,10 +1481,8 @@ void Being::logic() case MOVE: { - if (getWalkSpeed().x && static_cast<int> ((static_cast<float>( - get_elapsed_time(mActionTime)) * static_cast<float>( - frameCount)) / getWalkSpeed().x) - >= frameCount) + if (static_cast<float>(get_elapsed_time(mActionTime) + >= getWalkSpeed().x)) { nextTile(); } @@ -1493,8 +1491,6 @@ void Being::logic() case ATTACK: { -// std::string particleEffect(""); - if (!mActionTime) break; |