projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merged patch for issue 0000298: supertux fails to compile with gcc 4.3 (submitted...
[supertux.git]
/
src
/
object
/
block.cpp
diff --git
a/src/object/block.cpp
b/src/object/block.cpp
index
7d0b938
..
68721e8
100644
(file)
--- a/
src/object/block.cpp
+++ b/
src/object/block.cpp
@@
-93,6
+93,12
@@
Block::collision(GameObject& other, const CollisionHit& )
if(coin) {
coin->collect();
}
+
+ //Eggs get jumped
+ GrowUp* growup = dynamic_cast<GrowUp*> (&other);
+ if(growup) {
+ growup->do_jump();
+ }
}