[Super-tux-commit] supertux/src badguy.cpp,1.112,1.113
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-08-13 13:39:27
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26699/src Modified Files: badguy.cpp Log Message: Check if this fixes the jamming. Index: badguy.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/badguy.cpp,v retrieving revision 1.112 retrieving revision 1.113 diff -u -d -r1.112 -r1.113 --- badguy.cpp 26 Jul 2004 18:09:13 -0000 1.112 +++ badguy.cpp 13 Aug 2004 13:39:18 -0000 1.113 @@ -1314,9 +1314,9 @@ 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) { |