Skip to content

Commit

Permalink
"light" -> "on-light", remove unneeded set_blend
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankata453 committed Nov 23, 2024
1 parent 380ea8b commit ebe57ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/object/bonus_block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ BonusBlock::preload_contents(int d)
case 6: // Light.
case 15: // Light (On).
SoundManager::current()->preload("sounds/switch.ogg");
m_lightsprite = m_sprite->create_linked_sprite("light");
m_lightsprite = m_sprite->create_linked_sprite("on-light");
break;

case 7:
Expand Down
2 changes: 0 additions & 2 deletions src/object/bullet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ Bullet::Bullet(const Vector& pos, const Vector& xm, Direction dir, BonusType typ
}

lightsprite = sprite->create_linked_light_sprite();
if (lightsprite)
lightsprite->set_blend(Blend::ADD);

m_col.m_bbox.set_pos(pos);
m_col.m_bbox.set_size(sprite->get_current_hitbox_width(), sprite->get_current_hitbox_height());
Expand Down

0 comments on commit ebe57ca

Please sign in to comment.