diff options
Diffstat (limited to 'draw')
| -rw-r--r-- | draw/anim.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp index 119bd6c6..2612c110 100644 --- a/draw/anim.cpp +++ b/draw/anim.cpp @@ -44,7 +44,7 @@ void anim_mesh::add_clickable(tile_shader& shader, const Vector2i& win_size, .dest = { offset, offset + Vector2i(f.size) }, .bitmask = a.bitmask(), .e = s_, - .depth = s.ordinal(), + .depth = s.ordinal() + (float)s.coord.z() * TILE_COUNT, .slope = data.slope, .bb_min = data.bb_min, .bb_max = data.bb_max, .stride = a.info().pixel_size[0], |
