projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
play jump sound again when double jumping
[supertux.git]
/
src
/
player.cpp
diff --git
a/src/player.cpp
b/src/player.cpp
index
af12e78
..
3bc23df
100644
(file)
--- 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);
}