projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ae3fc
)
In the invincible mode, don't bump/squish enemies, just kill them!
author
Ricardo Cruz
<rick2@aeiou.pt>
Thu, 29 Apr 2004 23:23:20 +0000
(23:23 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Thu, 29 Apr 2004 23:23:20 +0000
(23:23 +0000)
SVN-Revision: 855
src/world.cpp
patch
|
blob
|
history
diff --git
a/src/world.cpp
b/src/world.cpp
index
1c18756
..
f087b80
100644
(file)
--- a/
src/world.cpp
+++ b/
src/world.cpp
@@
-374,7
+374,8
@@
World::collision_handler()
// functions of the collided objects.
if (tux.previous_base.y < tux.base.y &&
tux.previous_base.y + tux.previous_base.height
- < (*i)->base.y + (*i)->base.height/2)
+ < (*i)->base.y + (*i)->base.height/2
+ && !tux.invincible_timer.started())
{
(*i)->collision(&tux, CO_PLAYER, COLLISION_SQUISH);
}