Skip to content

Commit

Permalink
Change the lock's sprite layer to be the same. (#3090)
Browse files Browse the repository at this point in the history
Fixes #3089
  • Loading branch information
bruhmoent authored Oct 26, 2024
1 parent a3cfb55 commit b34b04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trigger/door.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Door::draw(DrawingContext& context)
Vector shake_delta = Vector(static_cast<float>(graphicsRandom.rand(-8, 8)), static_cast<float>(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);
}
}

Expand Down

0 comments on commit b34b04d

Please sign in to comment.