summaryrefslogtreecommitdiffhomepage
path: root/src/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 6361c118..905fc8d0 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -239,6 +239,12 @@ size_t entity::move_to(size_t& i, Vector2i delta, rotation new_r)
return i;
}
+void entity::move_to(Magnum::Vector2i delta)
+{
+ auto i = index();
+ (void)move_to(i, delta, r);
+}
+
void entity::set_bbox_(Vector2b offset_, Vector2b bbox_offset_, Vector2ub bbox_size_, pass_mode pass_)
{
const_cast<Vector2b&>(offset) = offset_;