From 26e0f16a685bc08e2341ff119fb063e7f7b558a8 Mon Sep 17 00:00:00 2001 From: Mitachi <70312009+Mitachi2611@users.noreply.github.com> Date: Tue, 17 May 2022 19:12:00 +0200 Subject: [PATCH] Useless now --- how-to/Srcs-Server/game/src/char_item.cpp | 6 ------ how-to/diff/AFTER_char_item.cpp | 6 ------ 2 files changed, 12 deletions(-) diff --git a/how-to/Srcs-Server/game/src/char_item.cpp b/how-to/Srcs-Server/game/src/char_item.cpp index 41a7bde..b73190e 100644 --- a/how-to/Srcs-Server/game/src/char_item.cpp +++ b/how-to/Srcs-Server/game/src/char_item.cpp @@ -18,8 +18,6 @@ // and replace this raw with this: #ifdef ENABLE_STONES_STACKFIX - DWORD dwStonesVnum = item->GetVnum(); - if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); @@ -52,8 +50,6 @@ // and replace this raw with this: #ifdef ENABLE_STONES_STACKFIX - DWORD dwStonesVnum = item->GetVnum(); - if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); @@ -86,8 +82,6 @@ // and replace this raw with this: #ifdef ENABLE_STONES_STACKFIX - DWORD dwStonesVnum = item->GetVnum(); - if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); diff --git a/how-to/diff/AFTER_char_item.cpp b/how-to/diff/AFTER_char_item.cpp index dd1f0f3..3b3d6af 100644 --- a/how-to/diff/AFTER_char_item.cpp +++ b/how-to/diff/AFTER_char_item.cpp @@ -943,8 +943,6 @@ bool CHARACTER::DoRefine(LPITEM item, bool bMoneyOnly) DBManager::instance().SendMoneyLog(MONEY_LOG_REFINE, item->GetVnum(), -cost); #ifdef ENABLE_STONES_STACKFIX - DWORD dwStonesVnum = item->GetVnum(); - if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); @@ -1242,8 +1240,6 @@ bool CHARACTER::DoRefineWithScroll(LPITEM item) DBManager::instance().SendMoneyLog(MONEY_LOG_REFINE, item->GetVnum(), -prt->cost); #ifdef ENABLE_STONES_STACKFIX - DWORD dwStonesVnum = item->GetVnum(); - if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); @@ -1287,8 +1283,6 @@ bool CHARACTER::DoRefineWithScroll(LPITEM item) NotifyRefineFail(this, item, szRefineType, -1); #ifdef ENABLE_STONES_STACKFIX - DWORD dwStonesVnum = item->GetVnum(); - if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos));