From 6c3974a46c659e558b2b5f249b7b000a5b39fe25 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Oct 2013 16:27:33 +0300 Subject: Rename actorspritemanager into actormanager. --- src/gui/widgets/avatarlistbox.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets/avatarlistbox.cpp') diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index f39fbc02d..d4eefe69c 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -21,7 +21,7 @@ #include "gui/widgets/avatarlistbox.h" -#include "actorspritemanager.h" +#include "actormanager.h" #include "configuration.h" #include "graphicsvertexes.h" #include "maplayer.h" @@ -313,7 +313,7 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) void AvatarListBox::mousePressed(gcn::MouseEvent &event) { - if (!actorSpriteManager || !player_node || !viewport + if (!actorManager || !player_node || !viewport || !getFont()->getHeight()) { return; @@ -339,10 +339,10 @@ void AvatarListBox::mousePressed(gcn::MouseEvent &event) { if (ava->getType() == AVATAR_PLAYER) { - const Being *const being = actorSpriteManager->findBeingByName( + const Being *const being = actorManager->findBeingByName( ava->getName(), Being::PLAYER); if (being) - actorSpriteManager->heal(being); + actorManager->heal(being); } else { @@ -359,7 +359,7 @@ void AvatarListBox::mousePressed(gcn::MouseEvent &event) const Avatar *const avatar = model->getAvatarAt(selected); if (avatar) { - const Being *const being = actorSpriteManager + const Being *const being = actorManager ->findBeingByName(avatar->getName(), Being::PLAYER); if (being) viewport->showPopup(being); -- cgit v1.2.3-70-g09d2