summaryrefslogtreecommitdiff
path: root/src
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
parent0fca8408dca8560fa74bb666a8e1e147e4de75fd (diff)
downloadmv-7223ee1b262437ce14046cd15e83e4c0699aa465.tar.gz
mv-7223ee1b262437ce14046cd15e83e4c0699aa465.tar.bz2
mv-7223ee1b262437ce14046cd15e83e4c0699aa465.tar.xz
mv-7223ee1b262437ce14046cd15e83e4c0699aa465.zip
add missing consts in playerinfo.
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);