projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4f1c20
)
- fixed it so Tux doesn't die on spikes if safety timer is started
author
Ryan Flegel
<rflegel@gmail.com>
Mon, 24 May 2004 23:32:41 +0000
(23:32 +0000)
committer
Ryan Flegel
<rflegel@gmail.com>
Mon, 24 May 2004 23:32:41 +0000
(23:32 +0000)
SVN-Revision: 1319
src/player.cpp
patch
|
blob
|
history
diff --git
a/src/player.cpp
b/src/player.cpp
index
f11b12a
..
fde8292
100644
(file)
--- a/
src/player.cpp
+++ b/
src/player.cpp
@@
-199,7
+199,7
@@
Player::action(float elapsed_time)
collision_swept_object_map(&old_base, &base);
- if (
!invincible_timer.started(
)
+ if (
(!invincible_timer.started() && !safe_timer.started()
)
&& (isspike(base.x, base.y) || isspike(base.x + base.width, base.y)
|| isspike(base.x, base.y + base.height)
|| isspike(base.x + base.width, base.y + base.height)))