mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-16 06:18:43 +00:00
Fixed: Use white color for underwears everywhere (even if it's a bug in EGS...)
Changed: Don't call applyColorSlot twice if item exists
This commit is contained in:
parent
5ca341b29f
commit
66ab61e407
2 changed files with 5 additions and 2 deletions
|
@ -508,6 +508,9 @@ void SCharacter3DSetup::setupFromCS_ModelCol (SLOTTYPE::EVisualSlot s, sint32 mo
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// fix underwears color
|
||||||
|
if (model == 0) col = 6; // white
|
||||||
|
|
||||||
if ((part == Char3DPart_HandLeftItem) || (part == Char3DPart_HandRightItem))
|
if ((part == Char3DPart_HandLeftItem) || (part == Char3DPart_HandRightItem))
|
||||||
Parts[part].Name = "none.shape";
|
Parts[part].Name = "none.shape";
|
||||||
}
|
}
|
||||||
|
|
|
@ -525,8 +525,8 @@ void CPlayerCL::equip(SLOTTYPE::EVisualSlot slot, const std::string &shapeName,
|
||||||
else
|
else
|
||||||
nlwarning("PL::equip(1):%d: cannot create the instance '%s'.", _Slot, shapeName.c_str());
|
nlwarning("PL::equip(1):%d: cannot create the instance '%s'.", _Slot, shapeName.c_str());
|
||||||
|
|
||||||
if ((slot != SLOTTYPE::RIGHT_HAND_SLOT) && (slot != SLOTTYPE::LEFT_HAND_SLOT))
|
if (!item && (slot != SLOTTYPE::RIGHT_HAND_SLOT) && (slot != SLOTTYPE::LEFT_HAND_SLOT))
|
||||||
applyColorSlot(_Instances[s], skin(), 0, _HairColor, _EyesColor);
|
applyColorSlot(_Instances[s], skin(), 6, _HairColor, _EyesColor);
|
||||||
|
|
||||||
}// equip //
|
}// equip //
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue