From c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527 Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Tue, 12 May 2020 01:24:57 +0200 Subject: Fix linux warnings --- src/render/Renderer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/render/Renderer.cpp') 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; } -- cgit v1.2.3