Changed egg shadow draw layer so it will no longer appear in front of bonusblocks...
authorLMH <lmh.0013@gmail.com>
Fri, 28 Nov 2014 18:50:50 +0000 (08:50 -1000)
committerLMH <lmh.0013@gmail.com>
Fri, 28 Nov 2014 18:50:50 +0000 (08:50 -1000)
src/object/growup.cpp

index 50d16ea..37eda10 100644 (file)
@@ -55,7 +55,7 @@ GrowUp::draw(DrawingContext& context)
   //Draw the Sprite.
   MovingSprite::draw(context);
   //Draw shade
-  shadesprite->draw(context, get_pos(), layer+1);
+  shadesprite->draw(context, get_pos(), layer);
   //Draw the light when dark
   context.get_light( get_bbox().get_middle(), &light );
   if (light.red + light.green < 2.0){