summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 23:58:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 23:58:39 +0300
commit0a39e956218ca15bf78803f89141c7c9dfcec0d9 (patch)
treeadfc0fcd42792ddad6b3cb8843d6fe0c22170580 /src/gui/widgets
parent69022cd939e572feadaadf1041ae7dadad782ed6 (diff)
downloadplus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.gz
plus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.bz2
plus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.xz
plus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.zip
Change format in ActorType enum.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp4
-rw-r--r--src/gui/widgets/tabs/socialfriendstab.h2
-rw-r--r--src/gui/widgets/tabs/socialplayerstab.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index e0fbc4d4b..a351c7199 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -373,7 +373,7 @@ void AvatarListBox::mousePressed(MouseEvent &event)
if (type == MapItemType::EMPTY)
{
const Being *const being = actorManager->findBeingByName(
- ava->getName(), ActorType::PLAYER);
+ ava->getName(), ActorType::Player);
if (being)
actorManager->heal(being);
}
@@ -392,7 +392,7 @@ void AvatarListBox::mousePressed(MouseEvent &event)
if (avatar)
{
const Being *const being = actorManager->findBeingByName(
- avatar->getName(), ActorType::PLAYER);
+ avatar->getName(), ActorType::Player);
if (being)
{
popupMenu->showPopup(viewport->mMouseX,
diff --git a/src/gui/widgets/tabs/socialfriendstab.h b/src/gui/widgets/tabs/socialfriendstab.h
index f483a73ca..baaa57595 100644
--- a/src/gui/widgets/tabs/socialfriendstab.h
+++ b/src/gui/widgets/tabs/socialfriendstab.h
@@ -103,7 +103,7 @@ class SocialFriendsTab final : public SocialTab
FOR_EACHP (StringVectCIter, it, players)
{
Avatar *const ava = new Avatar(*it);
- if (actorManager->findBeingByName(*it, ActorType::PLAYER)
+ if (actorManager->findBeingByName(*it, ActorType::Player)
|| players2.find(*it) != players2.end())
{
ava->setOnline(true);
diff --git a/src/gui/widgets/tabs/socialplayerstab.h b/src/gui/widgets/tabs/socialplayerstab.h
index 78c03feb4..56580300b 100644
--- a/src/gui/widgets/tabs/socialplayerstab.h
+++ b/src/gui/widgets/tabs/socialplayerstab.h
@@ -87,7 +87,7 @@ class SocialPlayersTab final : public SocialTab
}
}
const Being *const being = actorManager->findBeingByName(
- name, ActorType::PLAYER);
+ name, ActorType::Player);
if (being)
{
avatar->setDamageHp(being->getDamageTaken());
@@ -108,7 +108,7 @@ class SocialPlayersTab final : public SocialTab
return;
avatar->setDamageHp(0);
Being *const being = actorManager->findBeingByName(
- name, ActorType::PLAYER);
+ name, ActorType::Player);
if (being)
being->setDamageTaken(0);