X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FCamera.cpp;h=a0773db821ca1a14a0ec6fafa066f7533cda8d1a;hb=9f352d64f920f46a2d5b4fe67408154629933293;hp=d43864ad6d2a44eef942251382c1f56f2f1300ea;hpb=e9bdecf5f58fb9e5b2c067c20d0ce70f54f9ecb7;p=l2e.git diff --git a/src/graphics/Camera.cpp b/src/graphics/Camera.cpp index d43864a..a0773db 100644 --- a/src/graphics/Camera.cpp +++ b/src/graphics/Camera.cpp @@ -13,13 +13,13 @@ using geometry::Vector; namespace graphics { -Camera::Camera(int width, int height, const Vector *target) +Camera::Camera(int width, int height, const Vector *target) : target(target), halfWidth(width / 2), halfHeight(height / 2) { assert(target && "construct camera without target"); } -void Camera::SetTarget(const Vector *t) { +void Camera::SetTarget(const Vector *t) { assert(t && "cannot change camera target to 0"); target = t; }