summary refs log tree commit diff stats
path: root/src/camera_system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera_system.cpp')
-rw-r--r--src/camera_system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camera_system.cpp b/src/camera_system.cpp index abeba86..4709d01 100644 --- a/src/camera_system.cpp +++ b/src/camera_system.cpp
@@ -9,7 +9,7 @@ void CameraSystem::tick(double dt) {
9 const Map& map = game_.getMap(); 9 const Map& map = game_.getMap();
10 vec2i mapBounds = map.getMapSize() * map.getTileSize(); 10 vec2i mapBounds = map.getMapSize() * map.getTileSize();
11 11
12 pos_ = follow.loc() - (fov_ / 2); 12 pos_ = follow.loc - (fov_ / 2);
13 13
14 if (pos_.x() < 0) { 14 if (pos_.x() < 0) {
15 pos_.x() = 0; 15 pos_.x() = 0;