Fixed normal mech movement

This commit is contained in:
Anuken
2019-09-25 20:40:09 -04:00
parent 94d245246c
commit 85dc6385cd
2 changed files with 3 additions and 3 deletions

View File

@@ -447,7 +447,7 @@ public class NetServer implements ApplicationListener{
long elapsed = Time.timeSinceMillis(connection.lastRecievedClientTime);
float maxSpeed = boosting && !player.mech.flying ? player.mech.compoundSpeedBoost : player.mech.compoundSpeed;
float maxMove = elapsed / 1000f * 60f * maxSpeed * 1.05f;
float maxMove = elapsed / 1000f * 60f * Math.min(maxSpeed, player.mech.maxSpeed) * 1.1f;
player.pointerX = pointerX;
player.pointerY = pointerY;

View File

@@ -75,13 +75,13 @@ public class Mech extends UnlockableContent{
super.init();
for(int i = 0; i < 500; i++){
compoundSpeed += speed;
compoundSpeed *= (1f - drag);
compoundSpeed += speed;
}
for(int i = 0; i < 500; i++){
compoundSpeedBoost += boostSpeed;
compoundSpeedBoost *= (1f - drag);
compoundSpeedBoost += boostSpeed;
}
}