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

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