From f0ae9007f666580259ca8c120f7aaee58a63f85a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 6 May 2012 18:03:52 +0300 Subject: Fix code style. --- src/being.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 3459132b7..e8338df6c 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -1191,7 +1191,7 @@ void Being::nextTile() Uint8 dir = calcDirection(pos.x, pos.y); if (dir) - setDirection(static_cast(dir)); + setDirection(dir); if (!mMap || !mMap->getWalk(pos.x, pos.y, getWalkMask())) { @@ -1325,7 +1325,7 @@ void Being::logic() { if (getWalkSpeed().x && static_cast ((static_cast( get_elapsed_time(mActionTime)) * static_cast( - frameCount)) / static_cast(getWalkSpeed().x)) + frameCount)) / getWalkSpeed().x) >= frameCount) { nextTile(); @@ -1412,8 +1412,7 @@ void Being::logic() if (!isAlive() && getWalkSpeed().x && Net::getGameHandler()->removeDeadBeings() && static_cast ((static_cast(get_elapsed_time(mActionTime)) - / static_cast(getWalkSpeed().x))) - >= static_cast(frameCount)) + / static_cast(getWalkSpeed().x))) >= frameCount) { if (mType != PLAYER && actorSpriteManager) actorSpriteManager->destroy(this); -- cgit v1.2.3-70-g09d2