Commit 2c2c495c authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

land_safe, fix winning condition if user does loopings

parent b82031e9
......@@ -300,7 +300,7 @@ ActivityBase {
//console.log("XXX beginning contact with " + other.getBody().target.collisionName + " abs v=" + Math.abs(items.lastVelocity) + + " maxV=" + Activity.maxLandingVelocity);
if (other.getBody().target === landing &&
Math.abs(items.lastVelocity) <= Activity.maxLandingVelocity &&
(items.mode === "simple" || rocket.rotation === 0))
(items.mode === "simple" || rocket.rotation%360 === 0))
Activity.finishLevel(true);
else // ground
Activity.finishLevel(false); // crash
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment