1
0
Fork 0

Bug wasn't fixed, now it is

This commit is contained in:
Jan Christian Grünhage 2015-02-12 08:39:24 +01:00
parent d33b2a3b23
commit fb7739f968
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class PythagorasTree {
if (queue.size() == 0) return false;
PythagorasTree tree = queue.remove();
if (tree.momentaryDepth>= tree.maximalDepth) return true;
if (tree.momentaryDepth > tree.maximalDepth) return true;
tree.turtle.getFrame().setTitle("Pythagoras Tree - Depth: " + tree.momentaryDepth + " - Target Depth: " + tree.maximalDepth + " - Queuesize: " + queue.size());
@ -39,6 +39,8 @@ public class PythagorasTree {
tree.turtleState.returnToState(tree.turtle);
DrawingTools.drawSquare(tree.turtle, tree.size);
if (tree.momentaryDepth >= tree.maximalDepth) return true;
tree.turtle.forward(tree.size);
tree.turtle.pushState();