Merged patch for issue 0000298: supertux fails to compile with gcc 4.3 (submitted...
[supertux.git] / src / object / block.cpp
index 7d0b938..68721e8 100644 (file)
@@ -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();
+    }
 
   }