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/tmwa/inventoryrecv.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/tmwa/inventoryrecv.cpp') 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") -- cgit v1.2.3-70-g09d2