Fixed mechs not having animations on multiplayer

This commit is contained in:
Anuken
2020-09-29 10:57:06 -04:00
parent 5523ea4752
commit 521ca1aea4
3 changed files with 11 additions and 1 deletions

View File

@ -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;

View File

@ -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<>();

View File

@ -0,0 +1,9 @@
This is a small update. Not much new content, mostly bugfixes.
The next planned update will focus on the campaign, and will likely take much longer.
- Bugfixes
- Added team color for command center (Contributed by Voz-Duh)
- Cleaned up certain sprites to match V6 style (Partially contributed by Voz-Duh)
- Added support for Java-based mods on Android (mostly undocumented for now)
- Added 2x2 high capacity memory bank for logic processors
- Balancing