mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 15:31:33 +00:00
Test fix for charm in trader's satchel while trader..thanks demonstar and Derision! ** This may need to be tweaked..but, I was able to test without crashing the client.
This commit is contained in:
parent
8b14c21a24
commit
842f1fb9c7
@ -1,9 +1,10 @@
|
|||||||
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
== 07/21/2014 ==
|
== 07/31/2014 ==
|
||||||
Uleat: More inventory slot constant conversions. This should be the bulk of everything..but, due to the size of the server code, there
|
Uleat: More inventory slot constant conversions. This should be the bulk of everything..but, due to the size of the server code, there
|
||||||
may be some hidden ones. (client_packet.cpp and the client translators still need a thorough review.)
|
may be some hidden ones. (client_packet.cpp and the client translators still need a thorough review.)
|
||||||
Note: Please report any abnormal behaviour with inventory-related content..each diff file was reviewed 3 times..but, things CAN be missed.
|
Note: Please report any abnormal behaviour with inventory-related content..each diff file was reviewed 3 times..but, things CAN be missed.
|
||||||
|
Uleat: Test fix for client crashes in Bazaar, while actively selling, with a charm in the Trader's Satchel.
|
||||||
|
|
||||||
== 07/27/2014 ==
|
== 07/27/2014 ==
|
||||||
Uleat: More updates to the dictionary. Added a 'constants' file for each client translator..these will tie-in to the dictionary. Started
|
Uleat: More updates to the dictionary. Added a 'constants' file for each client translator..these will tie-in to the dictionary. Started
|
||||||
|
|||||||
@ -3087,10 +3087,20 @@ bool Client::CalcItemScale(uint32 slot_x, uint32 slot_y) {
|
|||||||
for (i = slot_x; i <= slot_y; i++) {
|
for (i = slot_x; i <= slot_y; i++) {
|
||||||
if (i == MainAmmo) // moved here from calling procedure to facilitate future range changes where MainAmmo may not be the last slot
|
if (i == MainAmmo) // moved here from calling procedure to facilitate future range changes where MainAmmo may not be the last slot
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ItemInst* inst = m_inv.GetItem(i);
|
ItemInst* inst = m_inv.GetItem(i);
|
||||||
|
|
||||||
if(inst == nullptr)
|
if(inst == nullptr)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// TEST CODE: test for bazaar trader crashing with charm items
|
||||||
|
if (Trader)
|
||||||
|
if (i >= EmuConstants::GENERAL_BAGS_BEGIN && i <= EmuConstants::GENERAL_BAGS_END) {
|
||||||
|
ItemInst* parent_item = m_inv.GetItem(Inventory::CalcSlotId(i));
|
||||||
|
if (parent_item && parent_item->GetItem()->ID == 17899) // trader satchel
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
bool update_slot = false;
|
bool update_slot = false;
|
||||||
if(inst->IsScaling())
|
if(inst->IsScaling())
|
||||||
{
|
{
|
||||||
@ -3170,10 +3180,20 @@ bool Client::DoItemEnterZone(uint32 slot_x, uint32 slot_y) {
|
|||||||
for(int i = slot_x; i <= slot_y; i++) {
|
for(int i = slot_x; i <= slot_y; i++) {
|
||||||
if (i == MainAmmo) // moved here from calling procedure to facilitate future range changes where MainAmmo may not be the last slot
|
if (i == MainAmmo) // moved here from calling procedure to facilitate future range changes where MainAmmo may not be the last slot
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ItemInst* inst = m_inv.GetItem(i);
|
ItemInst* inst = m_inv.GetItem(i);
|
||||||
|
|
||||||
if(!inst)
|
if(!inst)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// TEST CODE: test for bazaar trader crashing with charm items
|
||||||
|
if (Trader)
|
||||||
|
if (i >= EmuConstants::GENERAL_BAGS_BEGIN && i <= EmuConstants::GENERAL_BAGS_END) {
|
||||||
|
ItemInst* parent_item = m_inv.GetItem(Inventory::CalcSlotId(i));
|
||||||
|
if (parent_item && parent_item->GetItem()->ID == 17899) // trader satchel
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
bool update_slot = false;
|
bool update_slot = false;
|
||||||
if(inst->IsScaling())
|
if(inst->IsScaling())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user