From b34b04d3af128dec5484fada6792c9b053338968 Mon Sep 17 00:00:00 2001 From: bruhmoent <69918580+bruhmoent@users.noreply.github.com> Date: Sat, 26 Oct 2024 16:29:02 +0500 Subject: [PATCH] Change the lock's sprite layer to be the same. (#3090) Fixes #3089 --- src/trigger/door.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }