Fixed trail appearing behind player mech
This commit is contained in:
@@ -255,7 +255,9 @@ public class Player extends Unit implements BlockBuilder {
|
|||||||
drawBuilding(this);
|
drawBuilding(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
trail.draw(Palette.lighterOrange, Palette.lightishOrange, 5f);
|
if(isFlying()){
|
||||||
|
trail.draw(Palette.lighterOrange, Palette.lightishOrange, 5f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void drawName(){
|
public void drawName(){
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public class DesktopInput extends InputHandler{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isDrawing(){
|
public boolean isDrawing(){
|
||||||
return mode != none;
|
return mode != none || recipe != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -167,7 +167,7 @@ public class DesktopInput extends InputHandler{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean touchDown (int screenX, int screenY, int pointer, int button) {
|
public boolean touchDown (int screenX, int screenY, int pointer, int button) {
|
||||||
if(player.isDead() || state.is(State.menu) || ui.hasDialog()) return false;
|
if(player.isDead() || state.is(State.menu) || ui.hasDialog() || ui.hasMouse()) return false;
|
||||||
|
|
||||||
Tile cursor = tileAt(screenX, screenY);
|
Tile cursor = tileAt(screenX, screenY);
|
||||||
if(cursor == null) return false;
|
if(cursor == null) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user