summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-12 19:28:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-12 19:28:15 +0200
commite919e87ffad2f7271b64190d6df358444d000d44 (patch)
tree98174f3b9aad91cf4be9dcffce8110c4b652cb21 /src/scenery.cpp
parent31204d5821f63d1c1c78053e715bbb3ec2af1c6d (diff)
a
Diffstat (limited to 'src/scenery.cpp')
-rw-r--r--src/scenery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp
index d6b9fb22..1696f248 100644
--- a/src/scenery.cpp
+++ b/src/scenery.cpp
@@ -97,7 +97,7 @@ Vector2 scenery::depth_offset() const
{
const bool is_open = frame != atlas->info().nframes-1;
constexpr auto off_opened = Vector2(-1, 0);
- constexpr auto off_closed = Vector2(0, 0);
+ constexpr auto off_closed = Vector2(-1, 0);
const auto vec = is_open ? off_opened : off_closed;
const auto offset = rotate_point(vec, rotation::N, r);
ret += offset;