diff --git a/src/trigger/door.cpp b/src/trigger/door.cpp index 5b8e956d0d..c35136be8f 100644 --- a/src/trigger/door.cpp +++ b/src/trigger/door.cpp @@ -169,7 +169,7 @@ Door::draw(DrawingContext& context) Vector shake_delta = Vector(static_cast(graphicsRandom.rand(-8, 8)), static_cast(graphicsRandom.rand(-8, 8))); float shake_strength = m_lock_warn_timer.started() ? m_lock_warn_timer.get_timeleft() : 0.f; m_lock_sprite->draw(context.color(), get_bbox().get_middle() - - (Vector(m_lock_sprite->get_width() / 2, m_lock_sprite->get_height() / 2) + (shake_delta*shake_strength)), LAYER_BACKGROUNDTILES + 1, m_flip); + (Vector(m_lock_sprite->get_width() / 2, m_lock_sprite->get_height() / 2) + (shake_delta*shake_strength)), m_layer, m_flip); } }