Fix issue with action not being updated when typing grow()/fire()/etc in console...
[supertux.git] / src / object / falling_coin.cpp
index 33d3d2d..8e091a5 100644 (file)
@@ -29,8 +29,8 @@ FallingCoin::FallingCoin(const Vector& start_position, const int vel_x)
 {
   pos = start_position;
   sprite = sprite_manager->create("images/objects/coin/coin.sprite");
-  physic.vy = -800;
-  physic.vx = vel_x;
+  physic.set_velocity_y(-800);
+  physic.set_velocity_x(vel_x);
 }
 
 FallingCoin::~FallingCoin()