diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-26 19:33:21 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-26 19:33:21 +0200 |
commit | 54ad9e4702f6241b9a59668c33504281df66ac2f (patch) | |
tree | 55cf3ad895ff07052925db1a6665f10b7847c154 | |
parent | 8898bebd8dcb4361b35dde37bdf424d09b498d60 (diff) |
rage against -Wcomma
-rw-r--r-- | editor/camera.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/camera.cpp b/editor/camera.cpp index a71bc189..a41e62d9 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -9,7 +9,10 @@ namespace floormat { void app::do_camera(float dt) { if (keys[key::camera_reset]) - reset_camera_offset(), do_mouse_move(); + { + reset_camera_offset(); + do_mouse_move(); + } else { Vector2d dir{}; |