diff options
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 4 | ||||
-rw-r--r-- | src/being/being.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 73652bb1a..d773e68ca 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -89,6 +89,7 @@ bool Being::mShowPlayersStatus = false; bool Being::mEnableReorderSprites = true; bool Being::mHideErased = false; bool Being::mMoveNames = false; +bool Being::mUseDiagonal = true; int Being::mAwayEffect = -1; std::list<BeingCacheEntry*> beingInfoCache; @@ -1347,7 +1348,7 @@ void Being::nextTile() } mActionTime += static_cast<int>(mSpeed / 10); - if (mX != pos.x && mY != pos.y) + if ((mType != PLAYER || mUseDiagonal) && mX != pos.x && mY != pos.y) mSpeed = mWalkSpeed.x * 1.4; else mSpeed = mWalkSpeed.x; @@ -2034,6 +2035,7 @@ void Being::reReadConfig() mEnableReorderSprites = config.getBoolValue("enableReorderSprites"); mHideErased = config.getBoolValue("hideErased"); mMoveNames = config.getBoolValue("moveNames"); + mUseDiagonal = config.getBoolValue("useDiagonalSpeed"); mUpdateConfigTime = cur_time; } diff --git a/src/being/being.h b/src/being/being.h index e373ec5e3..7033f3981 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -1034,6 +1034,7 @@ class Being : public ActorSprite, public ConfigListener static bool mEnableReorderSprites; static bool mHideErased; static bool mMoveNames; + static bool mUseDiagonal; static int mAwayEffect; unsigned int mMoveTime; |