projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e40ca5f
)
Badguys now get their deactivate() method called prior to being deactivated
author
Christoph Sommer
<mail@christoph-sommer.de>
Fri, 26 May 2006 12:21:59 +0000
(12:21 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Fri, 26 May 2006 12:21:59 +0000
(12:21 +0000)
SVN-Revision: 3592
src/badguy/badguy.cpp
patch
|
blob
|
history
diff --git
a/src/badguy/badguy.cpp
b/src/badguy/badguy.cpp
index
57bf79b
..
676ecb7
100644
(file)
--- a/
src/badguy/badguy.cpp
+++ b/
src/badguy/badguy.cpp
@@
-75,6
+75,7
@@
BadGuy::update(float elapsed_time)
return;
}
if(is_offscreen()) {
+ if (state == STATE_ACTIVE) deactivate();
set_state(STATE_INACTIVE);
}