diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-30 19:49:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-30 19:49:18 +0300 |
commit | 624bd43ad0112ab6010c463727ae722bfba1e668 (patch) | |
tree | 0698165d7cade531e03a98a0746d3f73c767dea4 /src/net/tmwa/inventoryrecv.cpp | |
parent | 4fbc26faae3ea4dbfc6c6346f78c8c5377720b17 (diff) | |
download | mv-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/tmwa/inventoryrecv.cpp')
-rw-r--r-- | src/net/tmwa/inventoryrecv.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/inventoryrecv.cpp b/src/net/tmwa/inventoryrecv.cpp index b699fe49e..1dcc445d7 100644 --- a/src/net/tmwa/inventoryrecv.cpp +++ b/src/net/tmwa/inventoryrecv.cpp @@ -123,7 +123,7 @@ void InventoryRecv::processPlayerEquipment(Net::MessageIn &msg) Favorite_false, Equipm_true, Equipped_false); - inventory->setCards(index, cards, 4); + inventory->setCards(index, cards, maxCards); } if (equipType != 0) @@ -259,7 +259,7 @@ void InventoryRecv::processPlayerInventoryAdd(Net::MessageIn &msg) Favorite_false, fromBool(equipType, Equipm), Equipped_false); - inventory->setCards(index, cards, 4); + inventory->setCards(index, cards, maxCards); } ArrowsListener::distributeEvent(); } @@ -322,7 +322,7 @@ void InventoryRecv::processPlayerInventory(Net::MessageIn &msg) Favorite_false, fromBool(isEquipment, Equipm), Equipped_false); - inventory->setCards(index, cards, 4); + inventory->setCards(index, cards, maxCards); } } BLOCK_END("InventoryRecv::processPlayerInventory") @@ -495,7 +495,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); } } BLOCK_END("InventoryRecv::processPlayerStorageAdd") |