projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6811c6
)
Check if this fixes the jamming.
author
Ricardo Cruz
<rick2@aeiou.pt>
Fri, 13 Aug 2004 13:39:18 +0000
(13:39 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Fri, 13 Aug 2004 13:39:18 +0000
(13:39 +0000)
SVN-Revision: 1766
src/badguy.cpp
patch
|
blob
|
history
diff --git
a/src/badguy.cpp
b/src/badguy.cpp
index
6ace8e3
..
1009314
100644
(file)
--- a/
src/badguy.cpp
+++ b/
src/badguy.cpp
@@
-1314,9
+1314,9
@@
BadGuy::collision(void *p_c_object, int c_object, CollisionType type)
dir = RIGHT;
physic.set_velocity_x(fabsf(physic.get_velocity_x()));
- //
in case badguys get "jammed"
- if (physic.get_velocity_x() != 0)
-
base.x = pbad_c->base.x + pbad_c->base.width
;
+ //
Put bad guys a part (or they get jammed)
+ // only needed to do to one of them
+
base.x = pbad_c->base.x + pbad_c->base.width + 1
;
}
else if (dir == RIGHT)
{