mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-22 17:07:27 +00:00
Fixed: #270 AS decompilation - switch in loop
This commit is contained in:
@@ -644,16 +644,15 @@ public class ActionScript2Test extends ActionScript2TestBase {
|
||||
+ "var _loc1_ = 5;\r\n"
|
||||
+ "while(_loc1_ < 10)\r\n"
|
||||
+ "{\r\n"
|
||||
+ "if(_loc1_ == 5)\r\n"
|
||||
+ "if(_loc1_ != 5)\r\n"
|
||||
+ "{\r\n"
|
||||
+ "return false;\r\n"
|
||||
+ "}\r\n"
|
||||
+ "if(_loc1_ == 6)\r\n"
|
||||
+ "{\r\n"
|
||||
+ "return true;\r\n"
|
||||
+ "}\r\n"
|
||||
+ "_loc1_ = _loc1_ + 1;\r\n"
|
||||
+ "continue;\r\n"
|
||||
+ "}\r\n"
|
||||
+ "return false;\r\n"
|
||||
+ "}\r\n"
|
||||
+ "}\r\n"
|
||||
+ "trace(\"function4Test\");\r\n"
|
||||
@@ -2002,8 +2001,6 @@ public class ActionScript2Test extends ActionScript2TestBase {
|
||||
+ "case \"C\":\r\n"
|
||||
+ "trace(\"Ret 5\");\r\n"
|
||||
+ "return 5;\r\n"
|
||||
+ "default:\r\n"
|
||||
+ "continue;\r\n"
|
||||
+ "}\r\n"
|
||||
+ "}\r\n"
|
||||
+ "trace(\"Final\");\r\n"
|
||||
|
||||
Reference in New Issue
Block a user