summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-23 16:45:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-23 16:45:46 +0300
commitd20744c0ff83572dc209389df900826b7d088546 (patch)
treeb6a91790f6c52d016e57cfdba687251c1f01409f /src/being/localplayer.cpp
parenta22d7bce703101ba3ae15cb5b8545381dfe863c4 (diff)
downloadmanaplus-d20744c0ff83572dc209389df900826b7d088546.tar.gz
manaplus-d20744c0ff83572dc209389df900826b7d088546.tar.bz2
manaplus-d20744c0ff83572dc209389df900826b7d088546.tar.xz
manaplus-d20744c0ff83572dc209389df900826b7d088546.zip
Add support for additional slots in net code.
Now projectile slot depend on server.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 60518842d..935b64c70 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -2944,7 +2944,7 @@ void LocalPlayer::imitateOutfit(const Being *const player,
const int equipmentSlot = inventoryHandler
->convertFromServerSlot(sprite);
// logger->log("equipmentSlot: " + toString(equipmentSlot));
- if (equipmentSlot == ItemSlot::PROJECTILE_SLOT)
+ if (equipmentSlot == inventoryHandler->getProjectileSlot())
return;
const Item *const item = PlayerInfo::getEquipment(equipmentSlot);