- fix a bunch of msvc warnings (mostly assigning double constants to float variables)
[supertux.git] / src / badguy / sspiky.cpp
index 4316b18..ad80b8d 100644 (file)
@@ -42,7 +42,7 @@ void
 SSpiky::activate()
 {
   state = SSPIKY_SLEEPING;
-  physic.vx = 0;
+  physic.set_velocity_x(0);
   sprite->set_action(dir == LEFT ? "sleeping-left" : "sleeping-right");
 }