more CAutomobile

This commit is contained in:
aap 2019-07-09 09:57:44 +02:00
parent b26e83fc6e
commit 74fcbc8c0a
17 changed files with 395 additions and 36 deletions

View file

@ -1160,7 +1160,7 @@ CRenderer::IsVehicleCullZoneVisible(CEntity *ent)
case STATUS_PHYSICS:
case STATUS_ABANDONED:
case STATUS_WRECKED:
return !(v->m_pCurSurface && v->m_pCurSurface->bZoneCulled2);
return !(v->m_pCurGroundEntity && v->m_pCurGroundEntity->bZoneCulled2);
return true;
}