mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Draw selected building for payload enter command
This commit is contained in:
parent
aafdd35796
commit
f6ee9b7ffa
1 changed files with 7 additions and 0 deletions
|
|
@ -1055,6 +1055,13 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
|
||||
if(ai.attackTarget == null){
|
||||
Drawf.square(lineDest.getX(), lineDest.getY(), 3.5f);
|
||||
|
||||
if(ai.currentCommand() == UnitCommand.enterPayloadCommand){
|
||||
var build = world.buildWorld(lineDest.getX(), lineDest.getY());
|
||||
if(build != null && build.block.acceptsPayloads && build.team == unit.team){
|
||||
Drawf.selected(build, Pal.accent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue