diff options
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); } |