Browse Source

Update scene_renderer.cpp

Adam Djellouli 2 months ago
parent
commit
9f394d009b
1 changed files with 0 additions and 5 deletions
  1. 0 5
      render/scene_renderer.cpp

+ 0 - 5
render/scene_renderer.cpp

@@ -245,11 +245,6 @@ void Renderer::renderWorld(Engine::Core::World *world) {
 
 
     bool drawnByRegistry = false;
     bool drawnByRegistry = false;
     if (unitComp && !unitComp->unitType.empty() && m_entityRegistry) {
     if (unitComp && !unitComp->unitType.empty() && m_entityRegistry) {
-      if (unitComp->health <= 0 ||
-          entity->hasComponent<Engine::Core::PendingRemovalComponent>()) {
-        continue;
-      }
-
       auto fn = m_entityRegistry->get(unitComp->unitType);
       auto fn = m_entityRegistry->get(unitComp->unitType);
       if (fn) {
       if (fn) {
         DrawContext ctx{resources(), entity, world, modelMatrix};
         DrawContext ctx{resources(), entity, world, modelMatrix};