Fixed mechs not having animations on multiplayer
This commit is contained in:
@@ -25,7 +25,7 @@ abstract class MechComp implements Posc, Flyingc, Hitboxc, Unitc, Mechc, Elevati
|
||||
@Override
|
||||
public void update(){
|
||||
//trigger animation only when walking manually
|
||||
if(walked){
|
||||
if(walked || net.client()){
|
||||
float len = deltaLen();
|
||||
baseRotation = Angles.moveToward(baseRotation, deltaAngle(), type().baseRotateSpeed * Mathf.clamp(len / type().speed / Time.delta) * Time.delta);
|
||||
walkTime += len;
|
||||
|
||||
@@ -209,6 +209,7 @@ public class Block extends UnlockableContent{
|
||||
public @Load("@-team") TextureRegion teamRegion;
|
||||
public TextureRegion[] teamRegions;
|
||||
|
||||
//TODO make this not static
|
||||
public static TextureRegion[][] cracks;
|
||||
protected static final Seq<Tile> tempTiles = new Seq<>();
|
||||
protected static final Seq<Building> tempTileEnts = new Seq<>();
|
||||
|
||||
Reference in New Issue
Block a user