Slightly more interesting yeti_stalactites.
authormathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 27 Feb 2010 12:59:35 +0000 (12:59 +0000)
committermathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 27 Feb 2010 12:59:35 +0000 (12:59 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6416 837edb03-e0f3-0310-88ca-d4d4e8b29345

src/badguy/yeti_stalactite.cpp

index 8f6ef72..4e869d9 100644 (file)
@@ -35,6 +35,9 @@ YetiStalactite::start_shaking()
 {
   timer.start(YT_SHAKE_TIME);
   state = STALACTITE_SHAKING;
+  if(((int)get_pos().x / 32) % 2 == 0) {
+    physic.set_velocity_y(100);
+  }
 }
 
 bool