From 7969f0590204ac48d74e98c3211bca27693bac44 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 00:36:56 +0300 Subject: Convert TargetCursorType enum into strong typed enum. --- src/being/localplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/being/localplayer.cpp') 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( 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); -- cgit v1.2.3-60-g2f50