projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1edf616
)
Don't resurrect zeekling when colliding after squished
author
Tobias Markus
<tobbi@mozilla-uk.org>
Tue, 5 Nov 2013 17:34:10 +0000
(18:34 +0100)
committer
Tobias Markus
<tobiasmarkus1@tobiass-mbp.fritz.box>
Fri, 24 Jan 2014 21:56:53 +0000
(22:56 +0100)
src/badguy/zeekling.cpp
patch
|
blob
|
history
diff --git
a/src/badguy/zeekling.cpp
b/src/badguy/zeekling.cpp
index
1c49add
..
8fff3ea
100644
(file)
--- a/
src/badguy/zeekling.cpp
+++ b/
src/badguy/zeekling.cpp
@@
-109,6
+109,12
@@
Zeekling::onBumpVertical() {
void
Zeekling::collision_solid(const CollisionHit& hit)
{
+ if(sprite->get_action() == "squished-left" ||
+ sprite->get_action() == "squished-right")
+ {
+ return;
+ }
+
if(hit.top || hit.bottom) {
onBumpVertical();
} else if(hit.left || hit.right) {