projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc092fc
)
BonusBlock drawn on same layer as Block again
author
LMH
<lmh.0013@gmail.com>
Sat, 7 Sep 2013 18:08:17 +0000
(08:08 -1000)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Sat, 26 Oct 2013 16:45:22 +0000
(18:45 +0200)
src/object/bonus_block.cpp
patch
|
blob
|
history
diff --git
a/src/object/bonus_block.cpp
b/src/object/bonus_block.cpp
index
1bcfbc5
..
6f4c057
100644
(file)
--- a/
src/object/bonus_block.cpp
+++ b/
src/object/bonus_block.cpp
@@
-457,9
+457,9
@@
Block::break_me()
void
BonusBlock::draw(DrawingContext& context){
- // d
raw regular sprite
-
sprite->draw(context, get_pos(), 10
);
- //
Draw
light if on.
+ // d
o 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();