summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-21 12:37:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-21 12:37:47 +0100
commitc49e460e3c20f7c31ea1068b7d6ac3987f3c4b3b (patch)
tree33a5ebe0541e9ffc648c7bb9b4aeec4d8d097c98 /src/scenery.cpp
parent82d4063e1d9dbf7eb0908d42cb13958aa884dc05 (diff)
serialize: add depth offset anim_group parameter
Diffstat (limited to 'src/scenery.cpp')
-rw-r--r--src/scenery.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}