diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/anim.hpp | 2 | ||||
-rw-r--r-- | src/scenery.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/anim.hpp b/src/anim.hpp index 6264a070..c1bb7326 100644 --- a/src/anim.hpp +++ b/src/anim.hpp @@ -25,7 +25,7 @@ struct anim_group final String name, mirror_from; std::vector<anim_frame> frames; Vector2ui ground; // for use in anim-crop-tool only - Vector2s z_offset; + Vector2s z_offset, depth_offset; Vector3b offset; }; diff --git a/src/scenery.cpp b/src/scenery.cpp index 892104c2..9acc7944 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -97,7 +97,7 @@ Vector2 scenery::depth_offset() const const auto offset = rotate_point(door_offset, rotation::N, r); ret += Vector2(offset); } - ret += Vector2(atlas->group(r).z_offset); + ret += Vector2(atlas->group(r).depth_offset); return ret * inv_tile_size; } |