summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/being/playerinfo.cpp14
-rw-r--r--src/being/playerinfo.h14
2 files changed, 14 insertions, 14 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);
diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h
index eef07c584..5311a24f4 100644
--- a/src/being/playerinfo.h
+++ b/src/being/playerinfo.h
@@ -258,19 +258,19 @@ namespace PlayerInfo
void setEquipmentBackend(Equipment::Backend *const backend);
- void equipItem(const Item *const item, bool sfx);
+ void equipItem(const Item *const item, const bool sfx);
- void unequipItem(const Item *const item, bool sfx);
+ void unequipItem(const Item *const item, const bool sfx);
- void useItem(const Item *const item, bool sfx);
+ void useItem(const Item *const item, const bool sfx);
- void useEquipItem(const Item *const item, bool sfx);
+ void useEquipItem(const Item *const item, const bool sfx);
- void useEquipItem2(const Item *const item, bool sfx);
+ void useEquipItem2(const Item *const item, const 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);
- void pickUpItem(const FloorItem *const item, bool sfx);
+ void pickUpItem(const FloorItem *const item, const bool sfx);
void protectItem(const int id);