DEADSOFTWARE

Fix mob physics
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / GamePhysics.java
index 38253948725eae1e5fbf6c874509d1d7fe13f771..6b69faada2470f556265259c5df8f5aa6cda74b7 100644 (file)
@@ -264,7 +264,7 @@ public class GamePhysics {
         mobXColl(mob);
 
         if (mob.canJump() && mob.getVelocity().x != 0 && checkJump(mob)) {
-            mob.getVelocity().y += PL_JUMP_VELOCITY;
+            mob.getVelocity().y = PL_JUMP_VELOCITY;
             mob.setCanJump(false);
         }
     }