Author: grumbel
Date: 2007-10-29 04:31:10 +0100 (Mon, 29 Oct 2007)
New Revision: 3374
Modified:
trunk/pingus/src/actions/faller.cpp
Log:
- fixed endless loop when jumper hits a bridge, still causes weirdness
Modified: trunk/pingus/src/actions/faller.cpp
===================================================================
--- trunk/pingus/src/actions/faller.cpp 2007-10-29 03:09:12 UTC (rev 3373)
+++ trunk/pingus/src/actions/faller.cpp 2007-10-29 03:31:10 UTC (rev 3374)
@@ -129,12 +129,12 @@
break;
}
// If the Pingu collided into something while moving up...
- // NB: +1 because Mover backs out of something it has collided with.
else // if (velocity.y < 0.0f)
{
// Don't make the Pingu go up any further.
move.y = 0.0f;
velocity.y = 0.0f;
+ break;
}
}
_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs