Mobile bugfixes

This commit is contained in:
Anuken
2019-10-19 20:45:17 -04:00
parent a2a4c8c43d
commit f6899cf3c3
3 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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);
} }
} }

View File

@@ -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);