Skip to content

Commit

Permalink
BonusBlock drawn on same layer as Block again
Browse files Browse the repository at this point in the history
  • Loading branch information
LMH0013 authored and tobbi committed Oct 26, 2013
1 parent dc092fc commit 3a13209
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/object/bonus_block.cpp
Expand Up @@ -457,9 +457,9 @@ Block::break_me()

void
BonusBlock::draw(DrawingContext& context){
// draw regular sprite
sprite->draw(context, get_pos(), 10);
//Draw light if on.
// do the regular drawing first
Block::draw(context);
// then Draw the light if on.
if(sprite->get_action() == "on") {
Vector pos = get_pos() + (bbox.get_size() - lightsprite->get_size()) / 2;
context.push_target();
Expand Down

0 comments on commit 3a13209

Please sign in to comment.