diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-27 20:49:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-27 20:49:56 +0200 |
commit | b38454d56373125fc4715c509e5204c564f9e332 (patch) | |
tree | 44e46b66a07aab89e601c805a8e8547490f11d6a /src | |
parent | 405c0c4214c48908d8203a8f4d911289211eb909 (diff) |
entity: always allow rotate no-op in entity::can_rotate()
Diffstat (limited to 'src')
-rw-r--r-- | src/entity.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 905fc8d0..2a8c5aa1 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -91,6 +91,9 @@ bool entity::can_rotate(global_coords coord, rotation new_r, rotation old_r, Vec bool entity::can_rotate(rotation new_r) { + if (new_r == r) + return true; + return can_rotate(coord, new_r, r, offset, bbox_offset, bbox_size); } |