diff options
author | shfil <filip.gawin@zoho.com> | 2020-05-12 23:42:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 23:42:52 +0200 |
commit | bd8a0e73056ae11f113c6859fecc3fbe3376dc0b (patch) | |
tree | cf51d6ab8430cd186e02f0e8105004f8e5476728 /src/render/Renderer.cpp | |
parent | fix shotgun (diff) | |
parent | Fix linux warnings (diff) | |
download | re3-bd8a0e73056ae11f113c6859fecc3fbe3376dc0b.tar re3-bd8a0e73056ae11f113c6859fecc3fbe3376dc0b.tar.gz re3-bd8a0e73056ae11f113c6859fecc3fbe3376dc0b.tar.bz2 re3-bd8a0e73056ae11f113c6859fecc3fbe3376dc0b.tar.lz re3-bd8a0e73056ae11f113c6859fecc3fbe3376dc0b.tar.xz re3-bd8a0e73056ae11f113c6859fecc3fbe3376dc0b.tar.zst re3-bd8a0e73056ae11f113c6859fecc3fbe3376dc0b.zip |
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r-- | src/render/Renderer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 1f1e3b50..8a48eb11 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1174,6 +1174,7 @@ CRenderer::IsEntityCullZoneVisible(CEntity *ent) if(!obj->IsStatic()) return true; return !(obj->m_pCurSurface && obj->m_pCurSurface->bZoneCulled2); + default: break; } return true; } @@ -1182,12 +1183,14 @@ bool CRenderer::IsVehicleCullZoneVisible(CEntity *ent) { CVehicle *v = (CVehicle*)ent; - switch(v->GetStatus()) + switch(v->GetStatus()) { case STATUS_SIMPLE: case STATUS_PHYSICS: case STATUS_ABANDONED: case STATUS_WRECKED: return !(v->m_pCurGroundEntity && v->m_pCurGroundEntity->bZoneCulled2); + default: break; + } return true; } |