From b39e6702cc19cc3414a78e13dab5c19ae9de37c3 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 24 Mar 2015 19:08:49 +0100 Subject: [PATCH] Changing default init of camera. --- game/camera.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/camera.cc b/game/camera.cc index 5ceacf8..2476dec 100644 --- a/game/camera.cc +++ b/game/camera.cc @@ -7,8 +7,7 @@ Camera::Camera(glm::vec2 rotation, float distance) { } Camera::Camera() { - rotation = glm::vec2(0.0f, 0.0f); - distance = 5.0f; + Camera(glm::vec2(0.0f, 0.0f), 5.0f); } Camera::~Camera() {