diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 00:49:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 01:11:45 +0200 |
commit | a93f9574e2857a01c2fc339f13eff9aa440974e5 (patch) | |
tree | d32e7fe620c2f5866777a6012c86ca7f8658acdf /src | |
parent | fc5ec61780263dcfa1930e1fb64f302e4d6cf086 (diff) |
inspect: allow moving object on the chunk Z level
Diffstat (limited to 'src')
-rw-r--r-- | src/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.cpp b/src/object.cpp index 428db9ab..3c1dae9a 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -236,7 +236,7 @@ void object::teleport_to(size_t& i, global_coords coord_, Vector2b offset_, rota bool b0 = c->_bbox_for_scenery(*this, bb0), b1 = c->_bbox_for_scenery(*this, coord_.local(), offset_, bb_offset, bb_size, bb1); - if (coord_.chunk() == coord.chunk()) + if (coord_.chunk3() == coord.chunk3()) { c->_replace_bbox_(bb0, bb1, b0, b1, upd, dynamic); non_const(coord) = coord_; |