mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
parent
aaccb36d93
commit
e94e31aedf
3 changed files with 8 additions and 2 deletions
|
|
@ -590,6 +590,10 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
logicCutsceneZoom = -1f;
|
||||
}
|
||||
|
||||
if(!commandMode){
|
||||
commandRect = false;
|
||||
}
|
||||
|
||||
playerPlanTree.clear();
|
||||
player.unit().plans.each(playerPlanTree::insert);
|
||||
|
||||
|
|
|
|||
|
|
@ -183,12 +183,12 @@ public class Turret extends ReloadTurret{
|
|||
|
||||
public float estimateDps(){
|
||||
if(!hasAmmo()) return 0f;
|
||||
return shoot.shots / reload * 60f * peekAmmo().estimateDPS() * potentialEfficiency * timeScale;
|
||||
return shoot.shots / reload * 60f * (peekAmmo() == null ? 0f : peekAmmo().estimateDPS()) * potentialEfficiency * timeScale;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float range(){
|
||||
if(hasAmmo()){
|
||||
if(peekAmmo() != null){
|
||||
return range + peekAmmo().rangeChange;
|
||||
}
|
||||
return range;
|
||||
|
|
|
|||
|
|
@ -281,6 +281,8 @@ public class BeamDrill extends Block{
|
|||
Draw.rect(block.region, x, y);
|
||||
Draw.rect(topRegion, x, y, rotdeg());
|
||||
|
||||
if(isPayload()) return;
|
||||
|
||||
var dir = Geometry.d4(rotation);
|
||||
int ddx = Geometry.d4x(rotation + 1), ddy = Geometry.d4y(rotation + 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue