From f7bb763aaca6dd55bb591ab20ba280b3b5adca1c Mon Sep 17 00:00:00 2001 From: Uleat Date: Fri, 15 Aug 2014 16:28:16 -0400 Subject: [PATCH] Reactivation of wear change updates in Bot::Spawn() until fix can be found. --- changelog.txt | 3 +++ zone/bot.cpp | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/changelog.txt b/changelog.txt index 32b1a105c..1f43ed0d9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- +== 08/15/2014 == +Uleat: Reactivated the Bot::Spawn() code for sending post-spawn wear change updates..temporary until I can sort out the proper usage. + == 08/13/2014 == Uleat (Kingly_Krab): Fix for bot chest armor graphic glitch. (fix also caused RoF #wc to work properly) diff --git a/zone/bot.cpp b/zone/bot.cpp index 283f482de..aa5ab33f0 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -4330,18 +4330,18 @@ void Bot::Spawn(Client* botCharacterOwner, std::string* errorMessage) { this->SendPosition(); - /* // fillspawnstruct now properly handles this -U + // there is something askew with spawn struct appearance fields... + // I re-enabled this until I can sort it out -U uint32 itemID = 0; uint8 materialFromSlot = 0xFF; - for(int i=EmuConstants::EQUIPMENT_BEGIN; i<=EmuConstants::EQUIPMENT_END; ++i) { + for(int i = EmuConstants::EQUIPMENT_BEGIN; i <= EmuConstants::EQUIPMENT_END; ++i) { itemID = GetBotItemBySlot(i); if(itemID != 0) { materialFromSlot = Inventory::CalcMaterialFromSlot(i); - if(materialFromSlot != 0xFF) { + if(materialFromSlot != 0xFF) this->SendWearChange(materialFromSlot); - } } - }*/ + } } }