From: LMH Date: Sat, 7 Sep 2013 18:08:17 +0000 (-1000) Subject: BonusBlock drawn on same layer as Block again X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=02477cbdd7c3cd193d22eaac31d47a52255e3946;p=supertux.git BonusBlock drawn on same layer as Block again --- 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();