mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 02:08:23 +00:00
Merge 2f772e5e91 into 670c5e2e1a
This commit is contained in:
+19
-6
@@ -197,14 +197,27 @@ void WorldDatabase::GetCharSelectInfo(uint32 account_id, CharacterSelect_Struct*
|
||||
cs->cs_colors[char_num][material].color = color;
|
||||
|
||||
// the weapons are kept elsewhere
|
||||
if ((material==MaterialPrimary) || (material==MaterialSecondary))
|
||||
if ((material == MaterialPrimary) || (material == MaterialSecondary))
|
||||
{
|
||||
if(strlen(item->GetItem()->IDFile) > 2) {
|
||||
uint32 idfile=atoi(&item->GetItem()->IDFile[2]);
|
||||
if (material==MaterialPrimary)
|
||||
cs->primary[char_num]=idfile;
|
||||
if (strlen(item->GetItem()->IDFile) > 2)
|
||||
{
|
||||
uint32 idfile = 0;
|
||||
if (RuleB(Inventory,UseAugOrnamentations) && item->HasOrnamentation())
|
||||
{
|
||||
ItemInst* ornament = item->GetOrnamentation();
|
||||
if (strlen(ornament->GetItem()->IDFile) > 2)
|
||||
{
|
||||
idfile = atoi(&ornament->GetItem()->IDFile[2]);
|
||||
}
|
||||
}
|
||||
else
|
||||
cs->secondary[char_num]=idfile;
|
||||
{
|
||||
idfile = atoi(&item->GetItem()->IDFile[2]);
|
||||
}
|
||||
if (material == MaterialPrimary)
|
||||
cs->primary[char_num] = idfile;
|
||||
else
|
||||
cs->secondary[char_num] = idfile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user