projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60301a8
)
Dead snowballs don't walk around.
author
Wolfgang Becker
<uafr@gmx.de>
Fri, 11 Apr 2008 20:02:08 +0000
(20:02 +0000)
committer
Wolfgang Becker
<uafr@gmx.de>
Fri, 11 Apr 2008 20:02:08 +0000
(20:02 +0000)
SVN-Revision: 5387
src/badguy/captainsnowball.cpp
patch
|
blob
|
history
diff --git
a/src/badguy/captainsnowball.cpp
b/src/badguy/captainsnowball.cpp
index
a6975da
..
a9b0798
100644
(file)
--- a/
src/badguy/captainsnowball.cpp
+++ b/
src/badguy/captainsnowball.cpp
@@
-46,8
+46,10
@@
void
CaptainSnowball::collision_solid(const CollisionHit& hit)
{
WalkingBadguy::collision_solid(hit);
- walk_speed = WALK_SPEED;
- physic.set_velocity_x(dir == LEFT ? -walk_speed : walk_speed);
+ if( is_active() ){
+ walk_speed = WALK_SPEED;
+ physic.set_velocity_x(dir == LEFT ? -walk_speed : walk_speed);
+ }
}
bool