BonusBlock drawn on same layer as Block again
authorLMH <lmh.0013@gmail.com>
Sat, 7 Sep 2013 18:08:17 +0000 (08:08 -1000)
committerLMH <lmh.0013@gmail.com>
Sat, 7 Sep 2013 18:08:17 +0000 (08:08 -1000)
src/object/bonus_block.cpp

index 1bcfbc5..6f4c057 100644 (file)
@@ -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();