summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-26 23:25:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-26 23:25:32 +0300
commit3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0 (patch)
treed7f1400583c5bc6916129e05fc5e0907d1081ca9 /src/gui/viewport.cpp
parent6112e911a5b702fa1a9fca7bb6300f0195cbe685 (diff)
downloadmv-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.tar.gz
mv-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.tar.bz2
mv-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.tar.xz
mv-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.zip
Fix code style.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 73cb5b884..ed717af4f 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -816,14 +816,12 @@ void Viewport::mouseMoved(MouseEvent &event A_UNUSED)
switch (type)
{
case ActorType::Npc:
- gui->setCursorType(mHoverBeing->getHoverCursor());
- break;
-
case ActorType::Monster:
- gui->setCursorType(mHoverBeing->getHoverCursor());
- break;
-
case ActorType::Portal:
+ case ActorType::LocalPet:
+ case ActorType::Pet:
+ case ActorType::Mercenary:
+ case ActorType::Homunculus:
gui->setCursorType(mHoverBeing->getHoverCursor());
break;
@@ -831,7 +829,6 @@ void Viewport::mouseMoved(MouseEvent &event A_UNUSED)
case ActorType::FloorItem:
case ActorType::Unknown:
case ActorType::Player:
- case ActorType::LocalPet:
default:
gui->setCursorType(Cursor::CURSOR_POINTER);
break;