mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-25 06:42:29 +01:00
VC: Fix BFC for objects ignoring the exclusion list
This commit is contained in:
parent
5cb8fc1823
commit
758c21c821
@ -799,7 +799,10 @@ namespace SelectableBackfaceCulling
|
||||
if (entityType == 4)
|
||||
{
|
||||
const Object* object = reinterpret_cast<const Object*>(entity);
|
||||
return object->m_wCarPartModelIndex.Get() != -1 && object->m_objectCreatedBy == TEMP_OBJECT && object->bUseVehicleColours;
|
||||
if (object->m_wCarPartModelIndex.Get() != -1 && object->m_objectCreatedBy == TEMP_OBJECT && object->bUseVehicleColours)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// For everything else, check the exclusion list
|
||||
@ -840,7 +843,7 @@ namespace SVFReadyHook
|
||||
if (model != nullptr)
|
||||
{
|
||||
uint16_t* flags = reinterpret_cast<uint16_t*>(static_cast<char*>(model) + 0x42);
|
||||
*flags |= 0xC0;
|
||||
*flags |= 0x40;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user