Misc bugfixes
This commit is contained in:
@@ -30,7 +30,7 @@ public class Items{
|
|||||||
cost = 1.5f;
|
cost = 1.5f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
graphite = new Item("graphite", Color.valueOf("95abd9")){{
|
graphite = new Item("graphite", Color.valueOf("b2c6d2")){{
|
||||||
cost = 1f;
|
cost = 1f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ public class Rules{
|
|||||||
/** If true, this team has infinite unit ammo. */
|
/** If true, this team has infinite unit ammo. */
|
||||||
public boolean infiniteAmmo;
|
public boolean infiniteAmmo;
|
||||||
|
|
||||||
/** Enables "RTS" unit AI. TODO wip */
|
/** Enables "RTS" unit AI. */
|
||||||
public boolean rtsAi;
|
public boolean rtsAi;
|
||||||
/** Minimum size of attack squads. */
|
/** Minimum size of attack squads. */
|
||||||
public int rtsMinSquad = 4;
|
public int rtsMinSquad = 4;
|
||||||
|
|||||||
@@ -592,6 +592,10 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
logicCutsceneZoom = -1f;
|
logicCutsceneZoom = -1f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(commandBuild != null && !commandBuild.isValid()){
|
||||||
|
commandBuild = null;
|
||||||
|
}
|
||||||
|
|
||||||
if(!commandMode){
|
if(!commandMode){
|
||||||
commandRect = false;
|
commandRect = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -715,6 +715,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
selectedUnits.removeAll(u -> !u.isCommandable() || !u.isValid());
|
selectedUnits.removeAll(u -> !u.isCommandable() || !u.isValid());
|
||||||
|
|
||||||
if(!commandMode){
|
if(!commandMode){
|
||||||
|
commandBuild = null;
|
||||||
selectedUnits.clear();
|
selectedUnits.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user