projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Changed Yeti behaviour. You must stun him (jump on him) when is under a falling stala...
[supertux.git]
/
src
/
badguy
/
jumpy.cpp
diff --git
a/src/badguy/jumpy.cpp
b/src/badguy/jumpy.cpp
index
4059219
..
8834090
100644
(file)
--- a/
src/badguy/jumpy.cpp
+++ b/
src/badguy/jumpy.cpp
@@
-43,6
+43,7
@@
Jumpy::hit(const CollisionHit& chit)
// hit floor?
if(chit.normal.y < -.5) {
physic.set_velocity_y(JUMPSPEED);
+ SoundManager::get()->play_sound(IDToSound(SND_SKID));
} else if(chit.normal.y < .5) { // bumped on roof
physic.set_velocity_y(0);
}