play jump sound again when double jumping
authorMarek Moeckel <wansti@gmx.de>
Thu, 16 Sep 2004 20:48:09 +0000 (20:48 +0000)
committerMarek Moeckel <wansti@gmx.de>
Thu, 16 Sep 2004 20:48:09 +0000 (20:48 +0000)
(the double jump should probably get an extra sound effect)

SVN-Revision: 1932

src/player.cpp

index af12e78..3bc23df 100644 (file)
@@ -557,6 +557,10 @@ Player::handle_vertical_input()
                        can_double_jump = false;
                        jumping = true;
                        double_jumping = true;
+                       if (size == SMALL)
+            SoundManager::get()->play_sound(IDToSound(SND_JUMP));
+         else
+            SoundManager::get()->play_sound(IDToSound(SND_BIGJUMP));
                        physic.set_velocity_y(5.2);
          }