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