mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-18 05:11:42 +00:00
Changed: Simplified code
This commit is contained in:
parent
d5ceab3c70
commit
4bbd1a8ec6
1 changed files with 4 additions and 6 deletions
|
@ -634,12 +634,10 @@ void CPlayerCL::equip(SLOTTYPE::EVisualSlot slot, uint index, uint color)
|
||||||
{
|
{
|
||||||
if(SheetMngr.getItem(slot, (uint)idx))
|
if(SheetMngr.getItem(slot, (uint)idx))
|
||||||
{
|
{
|
||||||
// If the gender is a female get the right shape.
|
const CItemSheet *itemSheet = SheetMngr.getItem(slot, (uint)idx);
|
||||||
if(_Gender == GSGENDER::female)
|
|
||||||
equip(slot, SheetMngr.getItem(slot, (uint)idx)->getShapeFemale());
|
// If the gender is a female get the right shape else get the default shape.
|
||||||
// Else get the default shape.
|
equip(slot, _Gender == GSGENDER::female ? itemSheet->getShapeFemale():itemSheet->getShape());
|
||||||
else
|
|
||||||
equip(slot, SheetMngr.getItem(slot, (uint)idx)->getShape());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue