projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SDL: Remove the alpha channel and approximate with a colorkey if the texture doesn...
[supertux.git]
/
src
/
badguy
/
spiky.cpp
diff --git
a/src/badguy/spiky.cpp
b/src/badguy/spiky.cpp
index
f2b42ac
..
eebf19a
100644
(file)
--- a/
src/badguy/spiky.cpp
+++ b/
src/badguy/spiky.cpp
@@
-36,4
+36,17
@@
Spiky::write(lisp::Writer& writer)
writer.end_list("spiky");
}
+void
+Spiky::freeze()
+{
+ WalkingBadguy::freeze();
+ sprite->set_action(dir == LEFT ? "iced-left" : "iced-right");
+}
+
+bool
+Spiky::is_freezable() const
+{
+ return true;
+}
+
IMPLEMENT_FACTORY(Spiky, "spiky")