Fixed Armor Tinting (players and NPCs) that was broken during a previous update.

This commit is contained in:
Trevius committed 2014-12-19 15:46:01 -06:00
1 parent fce52d7186
commit ef287bc857
9 files changed
+42 -44

No files matched your search

+11 -1
View File
@@ -213,11 +213,21 @@ void WorldDatabase::GetCharSelectInfo(uint32 account_id, CharacterSelect_Struct*
}
else
{
uint32 color = 0;
if (pp.item_tint[matslot].rgb.use_tint)
{
color = pp.item_tint[matslot].color;
}
else
{
color = inst->GetColor();
}
// Armor Materials/Models
cs->equip[char_num][matslot].material = item->Material;
cs->equip[char_num][matslot].elitematerial = item->EliteMaterial;
cs->equip[char_num][matslot].heroforgemodel = inst->GetOrnamentHeroModel(matslot);
cs->equip[char_num][matslot].color.color = inst->GetColor();
cs->equip[char_num][matslot].color.color = color;
}
}
}