projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added MrRocket badguy and added him to the Dispenser.
[supertux.git]
/
src
/
badguy
/
stalactite.cpp
diff --git
a/src/badguy/stalactite.cpp
b/src/badguy/stalactite.cpp
index
788683b
..
1a0b367
100644
(file)
--- a/
src/badguy/stalactite.cpp
+++ b/
src/badguy/stalactite.cpp
@@
-82,6
+82,9
@@
Stalactite::kill_fall()
void
Stalactite::draw(DrawingContext& context)
{
+ if(get_state() != STATE_ACTIVE)
+ return;
+
if(state == STALACTITE_SHAKING) {
sprite->draw(context, get_pos() + Vector((rand() % 6)-3, 0), LAYER_OBJECTS);
} else {