From: Marek Moeckel Date: Thu, 16 Sep 2004 20:48:09 +0000 (+0000) Subject: play jump sound again when double jumping X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9782ed41abee83f31a99d296b88ef495f4740fd0;p=supertux.git play jump sound again when double jumping (the double jump should probably get an extra sound effect) SVN-Revision: 1932 --- diff --git a/src/player.cpp b/src/player.cpp index af12e7806..3bc23df9f 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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); }