summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-19 19:39:45 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-19 19:39:45 +0100
commitbee391a85b2e64a0c5dc31e499cfe2869a3a11b1 (patch)
treea755fc41454e0a152041bfed08f1d3ef3a34dade
parent4ccf81d1c5a9debeae2b77ca3ec9416fd9414704 (diff)
src/entity: fix flipped rotate condition
-rw-r--r--src/entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 41b22d5e..0d8b246b 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -95,7 +95,7 @@ bool entity::can_rotate(rotation new_r)
void entity::rotate(size_t, rotation new_r)
{
fm_assert(atlas->check_rotation(new_r));
- auto offset_ = is_dynamic() ? rotate_point(offset, r, new_r) : offset; // todo add boolean for this condition
+ auto offset_ = !is_dynamic() ? rotate_point(offset, r, new_r) : offset; // todo add boolean for this condition
auto bbox_offset_ = rotate_point(bbox_offset, r, new_r);
auto bbox_size_ = rotate_size(bbox_size, r, new_r);
set_bbox(offset_, bbox_offset_, bbox_size_, pass);