mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
chore(component): use CCharacterComponent::GetSectionsRecord in more places
This commit is contained in:
parent
ecc98d4738
commit
f5aa37368a
@ -444,15 +444,7 @@ void CCharacterComponent::RenderPrepHA(CCharacterComponent* component) {
|
||||
}
|
||||
|
||||
void CCharacterComponent::RenderPrepHL(CCharacterComponent* component) {
|
||||
auto sectionsRec = ComponentGetSectionsRecord(
|
||||
CCharacterComponent::s_chrVarArray,
|
||||
component->m_data.raceID,
|
||||
component->m_data.sexID,
|
||||
VARIATION_SKIN,
|
||||
0,
|
||||
component->m_data.skinColorID,
|
||||
nullptr
|
||||
);
|
||||
auto sectionsRec = component->GetSectionsRecord(VARIATION_SKIN, 0, component->m_data.skinColorID, nullptr);
|
||||
|
||||
// Skin texture
|
||||
|
||||
@ -482,15 +474,7 @@ void CCharacterComponent::RenderPrepHL(CCharacterComponent* component) {
|
||||
}
|
||||
|
||||
void CCharacterComponent::RenderPrepHU(CCharacterComponent* component) {
|
||||
auto sectionsRec = ComponentGetSectionsRecord(
|
||||
CCharacterComponent::s_chrVarArray,
|
||||
component->m_data.raceID,
|
||||
component->m_data.sexID,
|
||||
VARIATION_SKIN,
|
||||
0,
|
||||
component->m_data.skinColorID,
|
||||
nullptr
|
||||
);
|
||||
auto sectionsRec = component->GetSectionsRecord(VARIATION_SKIN, 0, component->m_data.skinColorID, nullptr);
|
||||
|
||||
// Skin texture
|
||||
|
||||
@ -1063,15 +1047,7 @@ void CCharacterComponent::SetSkinColor(int32_t skinColorID, bool a3, bool a4, co
|
||||
0
|
||||
);
|
||||
|
||||
auto sectionsRec = ComponentGetSectionsRecord(
|
||||
CCharacterComponent::s_chrVarArray,
|
||||
this->m_data.raceID,
|
||||
this->m_data.sexID,
|
||||
VARIATION_SKIN,
|
||||
0,
|
||||
skinColorID,
|
||||
nullptr
|
||||
);
|
||||
auto sectionsRec = this->GetSectionsRecord(VARIATION_SKIN, 0, skinColorID, nullptr);
|
||||
|
||||
if (skinColorID < numColors && sectionsRec && !(sectionsRec->m_flags & 0x8)) {
|
||||
auto underwearRec = this->GetSectionsRecord(VARIATION_UNDERWEAR, 0, skinColorID, nullptr);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user