diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 19:53:49 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 19:53:49 +0100 |
commit | ab725d9770c648bda8cc76425a5b3fcd98dce5f7 (patch) | |
tree | a9ff92c0fa418db28b65598f73bce9313bdfcdd2 /src/common.hpp | |
parent | 297524c8ec41b585c4812494791772406653e479 (diff) |
Improve camera following.
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common.hpp b/src/common.hpp index 71bc695..9da2d4c 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -251,6 +251,7 @@ namespace interface { bool panning = false; sf::Vector2f pan_ref; bool following = true; + v2f_t follow_center = v2f_t(0, 0); } camera; struct { |