projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
471a103
)
Bugfix: dying variable was not being initialized, thus resulting in those zombie...
author
Ricardo Cruz
<rick2@aeiou.pt>
Fri, 22 Oct 2004 22:50:10 +0000
(22:50 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Fri, 22 Oct 2004 22:50:10 +0000
(22:50 +0000)
SVN-Revision: 2051
src/badguy.cpp
patch
|
blob
|
history
diff --git
a/src/badguy.cpp
b/src/badguy.cpp
index
d26dc2a
..
5e496ec
100644
(file)
--- a/
src/badguy.cpp
+++ b/
src/badguy.cpp
@@
-210,6
+210,7
@@
BadGuy::activate(Direction activation_dir)
frozen_timer.init(true);
timer.init(true);
+ dying = DYING_NOT;
seen = true;
dir = activation_dir;
@@
-904,7
+905,7
@@
BadGuy::action(float elapsed_time)
if(!seen)
return;
-
+
switch (kind)
{
case BAD_MRICEBLOCK:
@@
-1226,9
+1227,6
@@
BadGuy::collision(const MovingObject&, int)
void
BadGuy::collision(void *p_c_object, int c_object, CollisionType type)
{
- if(!seen)
- return;
-
BadGuy* pbad_c = NULL;
Bullet* pbullet_c = NULL;