summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 00:36:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 00:36:56 +0300
commit7969f0590204ac48d74e98c3211bca27693bac44 (patch)
tree78b2952b547aabe9f018e308dc57834322715707 /src/being/localplayer.cpp
parent478ffec82dae4f55c38ccd424079166ec8c38905 (diff)
downloadManaVerse-7969f0590204ac48d74e98c3211bca27693bac44.tar.gz
ManaVerse-7969f0590204ac48d74e98c3211bca27693bac44.tar.bz2
ManaVerse-7969f0590204ac48d74e98c3211bca27693bac44.tar.xz
ManaVerse-7969f0590204ac48d74e98c3211bca27693bac44.zip
Convert TargetCursorType enum into strong typed enum.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index fedda2777..e9fa6e2c4 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -305,7 +305,7 @@ void LocalPlayer::logic()
const int rangeY = static_cast<int>(
abs(mTarget->getTileY() - getTileY()));
const int attackRange = getAttackRange();
- const TargetCursorType::Type targetType
+ const TargetCursorTypeT targetType
= rangeX > attackRange || rangeY > attackRange
? TargetCursorType::NORMAL : TargetCursorType::IN_RANGE;
mTarget->setTargetType(targetType);