Fixed shaky camera, many other small bugs
This commit is contained in:
@@ -145,7 +145,7 @@ public class Player extends Unit implements BlockBuilder {
|
||||
public void drawSmooth(){
|
||||
if((debug && (!showPlayer || !showUI)) || dead) return;
|
||||
|
||||
boolean snap = snapCamera && Settings.getBool("smoothcam") && Settings.getBool("pixelate") && isLocal;
|
||||
boolean snap = snapCamera && isLocal;
|
||||
|
||||
String mname = mech.name;
|
||||
|
||||
@@ -407,6 +407,16 @@ public class Player extends Unit implements BlockBuilder {
|
||||
rotation = Mathf.slerpDelta(rotation, targetAngle, 0.1f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Player set(float x, float y){
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
if(mobile && !isLocal){
|
||||
Core.camera.position.set(x, y, 0f);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean acceptsAmmo(Item item) {
|
||||
return weapon.getAmmoType(item) != null && inventory.canAcceptAmmo(weapon.getAmmoType(item));
|
||||
|
||||
Reference in New Issue
Block a user