summaryrefslogtreecommitdiffhomepage
path: root/src/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/object.cpp b/src/object.cpp
index ee21c14f..d5133337 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -132,6 +132,11 @@ point object::normalize_coords(global_coords coord, Vector2b cur_offset, Vector2
return { coord, Vector2b(off_new) };
}
+point object::normalize_coords(const point& pt, Vector2i delta)
+{
+ return object::normalize_coords(pt.coord, pt.offset, delta);
+}
+
template<bool neighbor = true>
static bool do_search(struct chunk* c, chunk_coords_ coord, object_id id, Vector2 min, Vector2 max, Vector2b off = {})
{