diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-13 13:12:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-13 13:12:06 +0300 |
commit | 13baf331faa43913cb836661113ba63d3c2bc0a3 (patch) | |
tree | 03ddeb1936a712228c0514dc70926f2f74177a54 /src/being/localplayer.cpp | |
parent | 7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2 (diff) | |
download | mv-13baf331faa43913cb836661113ba63d3c2bc0a3.tar.gz mv-13baf331faa43913cb836661113ba63d3c2bc0a3.tar.bz2 mv-13baf331faa43913cb836661113ba63d3c2bc0a3.tar.xz mv-13baf331faa43913cb836661113ba63d3c2bc0a3.zip |
Move targetcursortype into separate file.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index d22e8503c..b64c494b7 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -298,7 +298,7 @@ void LocalPlayer::logic() if (mTarget->getType() == ActorType::NPC) { // NPCs are always in range - mTarget->setTargetType(TCT_IN_RANGE); + mTarget->setTargetType(TargetCursorType::IN_RANGE); } else { @@ -308,9 +308,9 @@ void LocalPlayer::logic() const int rangeY = static_cast<int>( abs(mTarget->getTileY() - getTileY())); const int attackRange = getAttackRange(); - const TargetCursorType targetType = rangeX > attackRange || - rangeY > attackRange ? - TCT_NORMAL : TCT_IN_RANGE; + const TargetCursorType::Type targetType + = rangeX > attackRange || rangeY > attackRange + ? TargetCursorType::NORMAL : TargetCursorType::IN_RANGE; mTarget->setTargetType(targetType); if (!mTarget->isAlive() && (!mTargetDeadPlayers |