summaryrefslogtreecommitdiff
path: root/src/being/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-05 00:31:11 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-05 00:31:11 +0300
commit7223ee1b262437ce14046cd15e83e4c0699aa465 (patch)
tree0756bf00d4d91b1cd3cd4757ea519989b5a15800 /src/being/playerinfo.cpp
parent0fca8408dca8560fa74bb666a8e1e147e4de75fd (diff)
downloadplus-7223ee1b262437ce14046cd15e83e4c0699aa465.tar.gz
plus-7223ee1b262437ce14046cd15e83e4c0699aa465.tar.bz2
plus-7223ee1b262437ce14046cd15e83e4c0699aa465.tar.xz
plus-7223ee1b262437ce14046cd15e83e4c0699aa465.zip
add missing consts in playerinfo.
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r--src/being/playerinfo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index 169ee5be3..bc7a6776b 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -247,28 +247,28 @@ void setEquipmentBackend(Equipment::Backend *const backend)
mEquipment->setBackend(backend);
}
-void equipItem(const Item *const item, bool sfx)
+void equipItem(const Item *const item, const bool sfx)
{
if (sfx)
ItemSoundManager::playSfx(item, SOUND_EVENT_EQUIP);
Net::getInventoryHandler()->equipItem(item);
}
-void unequipItem(const Item *const item, bool sfx)
+void unequipItem(const Item *const item, const bool sfx)
{
if (sfx)
ItemSoundManager::playSfx(item, SOUND_EVENT_UNEQUIP);
Net::getInventoryHandler()->unequipItem(item);
}
-void useItem(const Item *const item, bool sfx)
+void useItem(const Item *const item, const bool sfx)
{
if (sfx)
ItemSoundManager::playSfx(item, SOUND_EVENT_USE);
Net::getInventoryHandler()->useItem(item);
}
-void useEquipItem(const Item *const item, bool sfx)
+void useEquipItem(const Item *const item, const bool sfx)
{
if (item)
{
@@ -299,7 +299,7 @@ void useEquipItem(const Item *const item, bool sfx)
}
}
-void useEquipItem2(const Item *const item, bool sfx)
+void useEquipItem2(const Item *const item, const bool sfx)
{
if (item)
{
@@ -330,7 +330,7 @@ void useEquipItem2(const Item *const item, bool sfx)
}
}
-void dropItem(const Item *const item, const int amount, bool sfx)
+void dropItem(const Item *const item, const int amount, const bool sfx)
{
if (item && mProtectedItems.find(item->getId()) == mProtectedItems.end())
{
@@ -340,7 +340,7 @@ void dropItem(const Item *const item, const int amount, bool sfx)
}
}
-void pickUpItem(const FloorItem *const item, bool sfx)
+void pickUpItem(const FloorItem *const item, const bool sfx)
{
if (sfx)
ItemSoundManager::playSfx(item, SOUND_EVENT_PICKUP);