Moved Tux' and Badguys' sprites from sprites.strf to individual .sprite files
[supertux.git] / src / object / rock.cpp
index df1371c..ea1ed64 100644 (file)
@@ -34,7 +34,7 @@ Rock::Rock(const lisp::Lisp& reader)
   bbox.set_size(31.8, 31.8);
   sprite = sprite_manager->create("rock");
   grabbed = false;
-  flags |= FLAG_SOLID;
+  flags |= FLAG_SOLID | FLAG_PORTABLE;
 }
 
 Rock::~Rock()
@@ -91,7 +91,7 @@ Rock::collision(GameObject& object, const CollisionHit& )
 }
 
 void
-Rock::grab(MovingObject& , const Vector& pos)
+Rock::grab(MovingObject& , const Vector& pos, Direction)
 {
   movement = pos - get_pos();
   grabbed = true;