From dc6e6fd05f4e5a1b3914bef66777078948205565 Mon Sep 17 00:00:00 2001 From: Uleat Date: Wed, 13 Aug 2014 14:24:42 -0400 Subject: [PATCH] Fix for bot chest armor display glitch in SoF+ clients --- changelog.txt | 3 +++ zone/bot.cpp | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 16d63a05e..32b1a105c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- +== 08/13/2014 == +Uleat (Kingly_Krab): Fix for bot chest armor graphic glitch. (fix also caused RoF #wc to work properly) + == 08/02/2014 == Kayen: Implemented spell_news fields - npc_no_los (check if LOS is required for spells) diff --git a/zone/bot.cpp b/zone/bot.cpp index eef5f803f..283f482de 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -4303,8 +4303,9 @@ void Bot::Spawn(Client* botCharacterOwner, std::string* errorMessage) { // Get the zone id this bot spawned in _lastZoneId = GetZoneID(); - this->helmtexture = 0xFF; - this->texture = 0xFF; + // this change propagates to Bot::FillSpawnStruct() + this->helmtexture = 0; //0xFF; + this->texture = 0; //0xFF; if(this->Save()) this->GetBotOwner()->CastToClient()->Message(0, "%s saved.", this->GetCleanName()); @@ -4586,8 +4587,8 @@ void Bot::FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho) { ns->spawn.size = 0; ns->spawn.NPC = 0; // 0=player,1=npc,2=pc corpse,3=npc corpse - ns->spawn.helm = 0xFF; - ns->spawn.equip_chest2 = 0xFF; + ns->spawn.helm = helmtexture; //0xFF; + ns->spawn.equip_chest2 = texture; //0xFF; const Item_Struct* item = 0; const ItemInst* inst = 0;