mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22: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) {
|
void CCharacterComponent::RenderPrepHL(CCharacterComponent* component) {
|
||||||
auto sectionsRec = ComponentGetSectionsRecord(
|
auto sectionsRec = component->GetSectionsRecord(VARIATION_SKIN, 0, component->m_data.skinColorID, nullptr);
|
||||||
CCharacterComponent::s_chrVarArray,
|
|
||||||
component->m_data.raceID,
|
|
||||||
component->m_data.sexID,
|
|
||||||
VARIATION_SKIN,
|
|
||||||
0,
|
|
||||||
component->m_data.skinColorID,
|
|
||||||
nullptr
|
|
||||||
);
|
|
||||||
|
|
||||||
// Skin texture
|
// Skin texture
|
||||||
|
|
||||||
@ -482,15 +474,7 @@ void CCharacterComponent::RenderPrepHL(CCharacterComponent* component) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterComponent::RenderPrepHU(CCharacterComponent* component) {
|
void CCharacterComponent::RenderPrepHU(CCharacterComponent* component) {
|
||||||
auto sectionsRec = ComponentGetSectionsRecord(
|
auto sectionsRec = component->GetSectionsRecord(VARIATION_SKIN, 0, component->m_data.skinColorID, nullptr);
|
||||||
CCharacterComponent::s_chrVarArray,
|
|
||||||
component->m_data.raceID,
|
|
||||||
component->m_data.sexID,
|
|
||||||
VARIATION_SKIN,
|
|
||||||
0,
|
|
||||||
component->m_data.skinColorID,
|
|
||||||
nullptr
|
|
||||||
);
|
|
||||||
|
|
||||||
// Skin texture
|
// Skin texture
|
||||||
|
|
||||||
@ -1063,15 +1047,7 @@ void CCharacterComponent::SetSkinColor(int32_t skinColorID, bool a3, bool a4, co
|
|||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
auto sectionsRec = ComponentGetSectionsRecord(
|
auto sectionsRec = this->GetSectionsRecord(VARIATION_SKIN, 0, skinColorID, nullptr);
|
||||||
CCharacterComponent::s_chrVarArray,
|
|
||||||
this->m_data.raceID,
|
|
||||||
this->m_data.sexID,
|
|
||||||
VARIATION_SKIN,
|
|
||||||
0,
|
|
||||||
skinColorID,
|
|
||||||
nullptr
|
|
||||||
);
|
|
||||||
|
|
||||||
if (skinColorID < numColors && sectionsRec && !(sectionsRec->m_flags & 0x8)) {
|
if (skinColorID < numColors && sectionsRec && !(sectionsRec->m_flags & 0x8)) {
|
||||||
auto underwearRec = this->GetSectionsRecord(VARIATION_UNDERWEAR, 0, skinColorID, nullptr);
|
auto underwearRec = this->GetSectionsRecord(VARIATION_UNDERWEAR, 0, skinColorID, nullptr);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user