diff options
Diffstat (limited to 'src/renderer.cpp')
-rw-r--r-- | src/renderer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp index 64b3a8e..0feee50 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp | |||
@@ -76,10 +76,8 @@ void Renderer::render(const Simulation& sim) | |||
76 | } | 76 | } |
77 | } | 77 | } |
78 | 78 | ||
79 | for (Simulation::id_type id : sim.getActive()) | 79 | for (const Entity& entity : sim.getActive() | sim.entityView()) |
80 | { | 80 | { |
81 | const Entity& entity = sim.getEntity(id); | ||
82 | |||
83 | SDL_SetRenderDrawColor(ren_.get(), entity.colorVal, entity.colorVal, 65, 255); | 81 | SDL_SetRenderDrawColor(ren_.get(), entity.colorVal, entity.colorVal, 65, 255); |
84 | 82 | ||
85 | SDL_Rect rect { | 83 | SDL_Rect rect { |