From 6ec5e5aaf44693f44a4f19d0d394cd8a4c114fa2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 19 Mar 2023 03:55:45 +0100 Subject: src/entity: call the overload with less args --- src/entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entity.cpp') diff --git a/src/entity.cpp b/src/entity.cpp index 697abed0..cc7bc00d 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -161,7 +161,7 @@ bool entity::can_move_to(Vector2i delta) size_t entity::move_to(size_t i, Vector2i delta, rotation new_r) { - if (!can_rotate(coord, new_r, r, offset, bbox_offset, bbox_size)) + if (!can_rotate(new_r)) return i; auto& es = c->_entities; -- cgit v1.2.3