projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set countMe flag to false for headless snomen
[supertux.git]
/
src
/
badguy
/
snowman.cpp
diff --git
a/src/badguy/snowman.cpp
b/src/badguy/snowman.cpp
index
7edc1c1
..
6170ae1
100644
(file)
--- a/
src/badguy/snowman.cpp
+++ b/
src/badguy/snowman.cpp
@@
-45,9
+45,10
@@
Snowman::loose_head()
physic.set_acceleration_y(0);
physic.enable_gravity(true);
set_state (STATE_FALLING);
physic.set_acceleration_y(0);
physic.enable_gravity(true);
set_state (STATE_FALLING);
+ countMe = false;
/* Create a new snowball where the snowman's head was */
/* Create a new snowball where the snowman's head was */
-
SnowBall* snowball = new SnowBall
(snowball_pos, dir, dead_script);
+
auto snowball = std::make_shared<SnowBall>
(snowball_pos, dir, dead_script);
Sector::current()->add_object(snowball);
}
Sector::current()->add_object(snowball);
}