Skip to content

Commit

Permalink
Small codestyle improvement in haywire class
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Nov 22, 2024
1 parent c3c346a commit 82bca54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/badguy/haywire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Haywire::draw(DrawingContext& context)
{
m_exploding_sprite->set_blend(Blend::ADD);
m_exploding_sprite->draw(context.light(),
get_pos()+Vector(get_bbox().get_width()/2, get_bbox().get_height()/2), m_layer, m_flip);
get_pos() + (get_bbox().get_size().as_vector() / 2.0f), m_layer, m_flip);
}
WalkingBadguy::draw(context);
}
Expand Down

0 comments on commit 82bca54

Please sign in to comment.