From 2741064fe3e73d069087b0f99a8357d67ec632af Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 24 May 2013 00:19:04 +0300 Subject: fix code style. --- src/gui/minimap.cpp | 1 + src/gui/popupmenu.cpp | 3 ++- src/gui/serverdialog.cpp | 3 ++- src/gui/viewport.cpp | 3 +-- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 15372b928..4acf7944d 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -322,6 +322,7 @@ void Minimap::draw(gcn::Graphics *graphics) type = UserPalette::NPC; break; + case ActorSprite::AVATAR: case ActorSprite::UNKNOWN: case ActorSprite::PLAYER: case ActorSprite::FLOOR_ITEM: diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 371798eb7..91bf514a3 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -270,9 +270,10 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) _("Add to ignore list")); } } - break; + break; } + case ActorSprite::AVATAR: case ActorSprite::UNKNOWN: case ActorSprite::FLOOR_ITEM: case ActorSprite::PORTAL: diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 9392a4358..488a3c3d7 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -601,7 +601,8 @@ void ServerDialog::loadServers(const bool addNew) if (!xmlNameEqual(serverNode, "server")) continue; - const std::string type = XML::getProperty(serverNode, "type", "unknown"); + const std::string type = XML::getProperty( + serverNode, "type", "unknown"); ServerInfo server; server.type = ServerInfo::parseType(type); diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index da771b397..f3ec2a743 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -908,12 +908,10 @@ void Viewport::mouseMoved(gcn::MouseEvent &event A_UNUSED) { switch (mHoverBeing->getType()) { - // NPCs case ActorSprite::NPC: gui->setCursorType(mHoverBeing->getHoverCursor()); break; - // Monsters case ActorSprite::MONSTER: gui->setCursorType(mHoverBeing->getHoverCursor()); break; @@ -922,6 +920,7 @@ void Viewport::mouseMoved(gcn::MouseEvent &event A_UNUSED) gui->setCursorType(mHoverBeing->getHoverCursor()); break; + case ActorSprite::AVATAR: case ActorSprite::FLOOR_ITEM: case ActorSprite::UNKNOWN: case ActorSprite::PLAYER: -- cgit v1.2.3-70-g09d2