Skip to content

Commit 4c7f9f6

Browse files
committed
badguy.cpp: code quality
1 parent b00924a commit 4c7f9f6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/badguy/badguy.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ BadGuy::draw(DrawingContext& context)
188188
}
189189
else
190190
{
191-
if (m_frozen && is_portable()) {
191+
if (m_frozen && is_portable())
192+
{
192193
m_freezesprite->draw(context.color(), draw_pos, m_layer);
193194
}
194195

@@ -197,13 +198,8 @@ BadGuy::draw(DrawingContext& context)
197198
}
198199

199200
if (m_state == STATE_BURNING) {
200-
// draw the flame sprite
201201
m_firesprite->draw(context.color(), draw_pos, m_layer);
202202
}
203-
else {
204-
/*m_firesprite->set_frame(0);
205-
m_firesprite->pause_animation();*/
206-
}
207203

208204
if (m_glowing)
209205
{

0 commit comments

Comments
 (0)