[Super-tux-commit] supertux/src badguy.cpp,1.75,1.76
Brought to you by:
wkendrick
From: Ryan F. <sik...@us...> - 2004-05-16 18:45:04
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30395 Modified Files: badguy.cpp Log Message: - collision fix Index: badguy.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/badguy.cpp,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -r1.75 -r1.76 --- badguy.cpp 14 May 2004 08:10:24 -0000 1.75 +++ badguy.cpp 16 May 2004 18:44:54 -0000 1.76 @@ -1095,7 +1095,8 @@ physic.set_velocity_x(fabsf(physic.get_velocity_x())); // in case badguys get "jammed" - base.x = pbad_c->base.x + pbad_c->base.width; + if (physic.get_velocity_x() != 0) + base.x = pbad_c->base.x + pbad_c->base.width; } else if (dir == RIGHT) { |