From 624bd43ad0112ab6010c463727ae722bfba1e668 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Aug 2017 19:49:18 +0300 Subject: Remove some cards number to constants. --- src/net/eathena/inventoryrecv.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/net/eathena/inventoryrecv.cpp') 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 -- cgit v1.2.3-70-g09d2