diff --git a/src/dawnrose/scene/components/GameCamera.cpp b/src/dawnrose/scene/components/GameCamera.cpp index 13666464..25abce38 100644 --- a/src/dawnrose/scene/components/GameCamera.cpp +++ b/src/dawnrose/scene/components/GameCamera.cpp @@ -30,7 +30,7 @@ void GameCamera::onStart() { if(current != slowTarget) { float_t m = 6.0f; float_t s = delta * 3.0f; - current += glm::vec2( + current += glm::vec2(. mathClamp((slowTarget.x - current.x) * s, -m, m), mathClamp((slowTarget.y - current.y) * s, -m, m) ); diff --git a/src/dawnrose/scene/components/GameCamera.hpp b/src/dawnrose/scene/components/GameCamera.hpp index 25a793c6..8323862f 100644 --- a/src/dawnrose/scene/components/GameCamera.hpp +++ b/src/dawnrose/scene/components/GameCamera.hpp @@ -18,7 +18,6 @@ namespace Dawn { glm::vec2 lookOffsetScale = glm::vec2(6.0f, 3.0f); float_t movementScrollSpeed = 0.5f; glm::vec3 zoomOffset = glm::vec3(0, 30.0f, 7.5f); - PlayerController *player = nullptr; GameCamera(SceneItem *item);