From 3a132098c7cb163618db9d8f90ea2754d53b02eb Mon Sep 17 00:00:00 2001 From: LMH Date: Sat, 7 Sep 2013 08:08:17 -1000 Subject: [PATCH] BonusBlock drawn on same layer as Block again --- src/object/bonus_block.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/object/bonus_block.cpp b/src/object/bonus_block.cpp index 1bcfbc580..6f4c05726 100644 --- a/src/object/bonus_block.cpp +++ b/src/object/bonus_block.cpp @@ -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(); -- 2.11.0