Crash fixes / Resource-steal fixed / No-build while shooting fixed

This commit is contained in:
Anuken
2018-08-14 12:16:21 -04:00
parent 2ae5c96690
commit 59ec09e82c
7 changed files with 15 additions and 18 deletions
@@ -365,9 +365,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
public void drawOver(){
if(dead) return;
if(!isShooting()){
drawBuilding(this);
}
drawBuilding(this);
if(mech.flying || boostHeat > 0.001f){
float wobblyness = 0.6f;
@@ -478,9 +476,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
avoidOthers(8f);
}
if(!isShooting()){
updateBuilding(this);
}
updateBuilding(this);
x = Mathf.clamp(x, 0, world.width() * tilesize);
y = Mathf.clamp(y, 0, world.height() * tilesize);