Issue #197 AS1/2 switch fixes

This commit is contained in:
Jindra Pet��k
2013-07-07 08:13:28 +02:00
parent 8bf113af6e
commit 77628bf739
3 changed files with 21 additions and 22 deletions
@@ -551,10 +551,10 @@ public class Graph {
System.out.println("</loops>");*/
getPrecontinues(null, heads.get(0), loops, null);
/*System.err.println("<loopspre>");
for (Loop el : loops) {
System.err.println(el);
}
System.err.println("</loopspre>");//*/
for (Loop el : loops) {
System.err.println(el);
}
System.err.println("</loopspre>");//*/
List<GraphTargetItem> ret = printGraph(new ArrayList<GraphPart>(), localData, stack, allParts, null, heads.get(0), null, loops);
processIfs(ret);
@@ -1743,7 +1743,7 @@ public class Graph {
vis.add(p);
}
first = false;
}
}
SwitchItem sw = new SwitchItem(null, swLoop, switchedItem, caseValues, caseCommands, defaultCommands, valueMappings);
currentRet.add(sw);
swLoop.phase = 2;