projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pt_BR updates from Krishnamurti Lelis Lima Vieira Nunes <krishnalelis@gmail.com>
[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")