Make Badguy activation dependent of Player position, not currently-visible screen
[supertux.git] / src / badguy / bouncing_snowball.cpp
index f84561b..ae9e91d 100644 (file)
@@ -46,7 +46,7 @@ BouncingSnowball::write(lisp::Writer& writer)
 }
 
 void
-BouncingSnowball::activate()
+BouncingSnowball::initialize()
 {
   physic.set_velocity_x(dir == LEFT ? -WALKSPEED : WALKSPEED);
   sprite->set_action(dir == LEFT ? "left" : "right");