summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-22 00:23:08 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-22 04:19:02 +0300
commit7c34adebb068549ca6a56bdf1b211398a0b1de11 (patch)
tree04a1e1ba87fa2005fc32c2358b2747390d1cd9d0 /src/actorspritemanager.cpp
parent54f8367afe9d30c21bcda057872439199c7dd9c1 (diff)
downloadplus-7c34adebb068549ca6a56bdf1b211398a0b1de11.tar.gz
plus-7c34adebb068549ca6a56bdf1b211398a0b1de11.tar.bz2
plus-7c34adebb068549ca6a56bdf1b211398a0b1de11.tar.xz
plus-7c34adebb068549ca6a56bdf1b211398a0b1de11.zip
Allow show equipment from other players from context menu "show items".
Also allow undress separate items from players locally.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index e7c28fd1e..9be75e0db 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -30,6 +30,7 @@
#include "playerrelations.h"
#include "gui/chatwindow.h"
+#include "gui/equipmentwindow.h"
#include "gui/killstats.h"
#include "gui/skilldialog.h"
#include "gui/socialwindow.h"
@@ -578,7 +579,12 @@ void ActorSpriteManager::logic()
it != it_end; ++it)
{
if ((*it) && (*it)->getType() == Being::PLAYER)
- static_cast<Being*>(*it)->addToCache();
+ {
+ Being *being = static_cast<Being*>(*it);
+ being->addToCache();
+ if (beingEquipmentWindow)
+ beingEquipmentWindow->resetBeing(being);
+ }
if (player_node)
{
if (player_node->getTarget() == *it)