diff options
-rw-r--r-- | engine/src/Camera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/src/Camera.cpp b/engine/src/Camera.cpp index 60e8aa1..41cc5ab 100644 --- a/engine/src/Camera.cpp +++ b/engine/src/Camera.cpp @@ -17,7 +17,7 @@ static auto viewport() -> Point; Point Camera::to_world(const Point& screen) const { - return screen - viewport().scale(1.0 / (2.0 * scale)) + offset; + return (screen - viewport().scale(0.5)).scale(1.0 / scale) + offset; } |