From 3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Sep 2014 23:25:32 +0300 Subject: Fix code style. --- src/gui/viewport.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/gui/viewport.cpp') 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; -- cgit v1.2.3-70-g09d2