From b38454d56373125fc4715c509e5204c564f9e332 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 27 Aug 2023 20:49:56 +0200 Subject: entity: always allow rotate no-op in entity::can_rotate() --- src/entity.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); } -- cgit v1.2.3