aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/RenderSystem.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-18 20:25:31 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-18 20:25:31 +0100
commit193e837fce92dcc169f995f670c9261f853ea1c3 (patch)
tree2ae646c1011e3b39b25a8f7d3458cc546c1cd8e0 /src/crepe/system/RenderSystem.cpp
parent74fcf733c2bcdcbcbfc64d88270b12a39e9d91e0 (diff)
adjusted so that all gets are auto
Diffstat (limited to 'src/crepe/system/RenderSystem.cpp')
-rw-r--r--src/crepe/system/RenderSystem.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp
index 37320ed..39e0e3f 100644
--- a/src/crepe/system/RenderSystem.cpp
+++ b/src/crepe/system/RenderSystem.cpp
@@ -1,5 +1,4 @@
#include <cmath>
-#include <functional>
#include <vector>
#include "../ComponentManager.h"
@@ -19,7 +18,7 @@ void RenderSystem::present_screen() const { SDLContext::get_instance().present_s
void RenderSystem::update_camera() {
ComponentManager & mgr = this->component_manager;
- std::vector<std::reference_wrapper<Camera>> cameras = mgr.get_components_by_type<Camera>();
+ auto cameras = mgr.get_components_by_type<Camera>();
for (Camera & cam : cameras) {
SDLContext::get_instance().camera(cam);