Skip to content

Commit 2a74a4e

Browse files
committed
Fix tarantula silk layer for custom badguy layer
Fixes #3374
1 parent 8665e18 commit 2a74a4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/badguy/tarantula.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Tarantula::draw(DrawingContext& context)
316316

317317
float length = std::floor((get_bbox().get_top() - m_start_position.y) / static_cast<float>(m_silk->get_height()));
318318
for (int i = 0; i <= static_cast<int>(length) + 1; i++) {
319-
context.color().draw_surface(m_silk, pos, LAYER_TILES-5);
319+
context.color().draw_surface(m_silk, pos, get_layer() - 1);
320320
pos.y += 32.f;
321321
}
322322
}

0 commit comments

Comments
 (0)