summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-30 19:49:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-30 19:49:18 +0300
commit624bd43ad0112ab6010c463727ae722bfba1e668 (patch)
tree0698165d7cade531e03a98a0746d3f73c767dea4 /src/net/eathena/inventoryrecv.cpp
parent4fbc26faae3ea4dbfc6c6346f78c8c5377720b17 (diff)
downloadmv-624bd43ad0112ab6010c463727ae722bfba1e668.tar.gz
mv-624bd43ad0112ab6010c463727ae722bfba1e668.tar.bz2
mv-624bd43ad0112ab6010c463727ae722bfba1e668.tar.xz
mv-624bd43ad0112ab6010c463727ae722bfba1e668.zip
Remove some cards number to constants.
Diffstat (limited to 'src/net/eathena/inventoryrecv.cpp')
-rw-r--r--src/net/eathena/inventoryrecv.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp
index 0b411d4ba..ead74ad63 100644
--- a/src/net/eathena/inventoryrecv.cpp
+++ b/src/net/eathena/inventoryrecv.cpp
@@ -187,7 +187,7 @@ void InventoryRecv::processPlayerEquipment(Net::MessageIn &msg)
fromBool(flags.bits.isFavorite, Favorite),
Equipm_true,
Equipped_false);
- inventory->setCards(index, cards, 4);
+ inventory->setCards(index, cards, maxCards);
inventory->setOptions(index, options);
}
delete options;
@@ -354,7 +354,7 @@ void InventoryRecv::processPlayerInventoryAdd(Net::MessageIn &msg)
favorite,
fromBool(equipType, Equipm),
Equipped_false);
- inventory->setCards(index, cards, 4);
+ inventory->setCards(index, cards, maxCards);
inventory->setOptions(index, options);
}
ArrowsListener::distributeEvent();
@@ -437,7 +437,7 @@ void InventoryRecv::processPlayerInventory(Net::MessageIn &msg)
fromBool(flags.bits.isFavorite, Favorite),
Equipm_false,
Equipped_false);
- inventory->setCards(index, cards, 4);
+ inventory->setCards(index, cards, maxCards);
}
}
BLOCK_END("InventoryRecv::processPlayerInventory")
@@ -791,7 +791,7 @@ void InventoryRecv::processPlayerStorageAdd(Net::MessageIn &msg)
Favorite_false,
Equipm_false,
Equipped_false);
- Ea::InventoryRecv::mStorage->setCards(index, cards, 4);
+ Ea::InventoryRecv::mStorage->setCards(index, cards, maxCards);
Ea::InventoryRecv::mStorage->setOptions(index, options);
}
}
@@ -1000,7 +1000,7 @@ void InventoryRecv::processPlayerCartAdd(Net::MessageIn &msg)
Favorite_false,
Equipm_false,
Equipped_false);
- inventory->setCards(index, cards, 4);
+ inventory->setCards(index, cards, maxCards);
inventory->setOptions(index, options);
}
else