Fixed #2425 (probably)
This commit is contained in:
@@ -389,7 +389,7 @@ public class UnitTypes implements ContentList{
|
||||
legLength = 30f;
|
||||
legExtension = -15;
|
||||
legBaseOffset = 10f;
|
||||
landShake = 2f;
|
||||
landShake = 1f;
|
||||
legSpeed = 0.1f;
|
||||
legLengthScl = 1f;
|
||||
rippleScale = 2f;
|
||||
|
||||
@@ -275,10 +275,10 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
damageContinuous(floor.damageTaken);
|
||||
}
|
||||
|
||||
if(!net.client() && tile.solid()){
|
||||
if(tile.solid()){
|
||||
if(type.canBoost){
|
||||
elevation = 1f;
|
||||
}else{
|
||||
}else if(!net.client()){
|
||||
kill();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -566,6 +566,8 @@ public class DesktopInput extends InputHandler{
|
||||
|
||||
@Override
|
||||
public void updateState(){
|
||||
super.updateState();
|
||||
|
||||
if(state.isMenu()){
|
||||
droppingItem = false;
|
||||
mode = none;
|
||||
|
||||
@@ -236,6 +236,8 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
|
||||
player.clearUnit();
|
||||
player.deathTimer = 61f;
|
||||
((CoreBuild)((BlockUnitc)unit).tile()).requestSpawn(player);
|
||||
|
||||
}else if(unit == null){ //just clear the unit (is this used?)
|
||||
player.clearUnit();
|
||||
//make sure it's AI controlled, so players can't overwrite each other
|
||||
@@ -372,7 +374,9 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
}
|
||||
|
||||
public void updateState(){
|
||||
|
||||
if(state.isMenu()){
|
||||
controlledType = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void drawBottom(){
|
||||
|
||||
Reference in New Issue
Block a user