Mobile bugfixes
This commit is contained in:
@@ -797,7 +797,7 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
|
|||||||
textFadeTime = 0f;
|
textFadeTime = 0f;
|
||||||
target = null;
|
target = null;
|
||||||
moveTarget = null;
|
moveTarget = null;
|
||||||
isShooting = isBoosting = isBuilding = isTransferring = isTyping = false;
|
isShooting = isBoosting = isTransferring = isTyping = false;
|
||||||
spawner = lastSpawner = null;
|
spawner = lastSpawner = null;
|
||||||
health = maxHealth();
|
health = maxHealth();
|
||||||
mining = null;
|
mining = null;
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
if(request.breaking){
|
if(request.breaking){
|
||||||
drawSelected(request.x, request.y, request.tile().block(), Pal.remove);
|
drawSelected(request.x, request.y, request.tile().block(), Pal.remove);
|
||||||
}else{
|
}else{
|
||||||
drawRequest(request.x, request.y, request.block, request.rotation);
|
request.block.drawRequest(request, allRequests(), validPlace(request.x, request.y, request.block, request.rotation));
|
||||||
drawSelected(request.x, request.y, request.block, Pal.accent);
|
drawSelected(request.x, request.y, request.block, Pal.accent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ public class TechTreeDialog extends FloatingDialog{
|
|||||||
copyInfo(node);
|
copyInfo(node);
|
||||||
|
|
||||||
for(TechTreeNode n : nodes){
|
for(TechTreeNode n : nodes){
|
||||||
|
if(!n.visible) continue;
|
||||||
minx = Math.min(n.x - n.width/2f, minx);
|
minx = Math.min(n.x - n.width/2f, minx);
|
||||||
maxx = Math.max(n.x + n.width/2f, maxx);
|
maxx = Math.max(n.x + n.width/2f, maxx);
|
||||||
miny = Math.min(n.y - n.height/2f, miny);
|
miny = Math.min(n.y - n.height/2f, miny);
|
||||||
|
|||||||
Reference in New Issue
Block a user