summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-19 00:24:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-19 00:24:52 +0300
commit495b746d928f28ce3e13ff95f26e8cddff2fb06e (patch)
tree562c745fe55d7245c325072c7c0b6f6f0e922954 /src/being/localplayer.cpp
parent59f0029e490f076a4b45765a27c27bb7d57a193d (diff)
downloadmv-495b746d928f28ce3e13ff95f26e8cddff2fb06e.tar.gz
mv-495b746d928f28ce3e13ff95f26e8cddff2fb06e.tar.bz2
mv-495b746d928f28ce3e13ff95f26e8cddff2fb06e.tar.xz
mv-495b746d928f28ce3e13ff95f26e8cddff2fb06e.zip
Move itemslot into separate file.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 62eecb9b2..ea35660d8 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -67,6 +67,7 @@
#include "net/playerhandler.h"
#include "resources/iteminfo.h"
+#include "resources/itemslot.h"
#include "resources/db/emotedb.h"
#include "resources/db/weaponsdb.h"
@@ -903,7 +904,7 @@ int LocalPlayer::getAttackRange() const
}
else
{
- const Item *const weapon = PlayerInfo::getEquipment(EQUIP_FIGHT1_SLOT);
+ const Item *const weapon = PlayerInfo::getEquipment(ItemSlot::FIGHT1_SLOT);
if (weapon)
{
const ItemInfo &info = weapon->getInfo();
@@ -3459,7 +3460,7 @@ void LocalPlayer::imitateOutfit(const Being *const player,
const int equipmentSlot = Net::getInventoryHandler()
->convertFromServerSlot(sprite);
// logger->log("equipmentSlot: " + toString(equipmentSlot));
- if (equipmentSlot == EQUIP_PROJECTILE_SLOT)
+ if (equipmentSlot == ItemSlot::PROJECTILE_SLOT)
return;
const Item *const item = PlayerInfo::getEquipment(equipmentSlot);