projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd5bee3
)
play jump sound again when double jumping
author
Marek Moeckel
<wansti@gmx.de>
Thu, 16 Sep 2004 20:48:09 +0000
(20:48 +0000)
committer
Marek 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
patch
|
blob
|
history
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);
}