mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-23 22:06:30 +00:00
fix: fix tellTarget handling on old AS version
This commit is contained in:
@@ -627,4 +627,23 @@ public class ActionScript2AssemblerTest extends ActionScript2TestBase {
|
||||
assertEquals(res, "c += 1;");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTellTarget() {
|
||||
String res = decompilePcode("SetTarget \"\"\n"
|
||||
+ "GotoFrame 1\n"
|
||||
+ "SetTarget \"../test\"\n"
|
||||
+ "GoToLabel \"MyLabel\"\n"
|
||||
+ "Play");
|
||||
res = cleanPCode(res);
|
||||
assertEquals(res, "tellTarget(\"\")\n"
|
||||
+ "{\n"
|
||||
+ "gotoAndStop(2);\n"
|
||||
+ "}\n"
|
||||
+ "tellTarget(\"../test\")\n"
|
||||
+ "{\n"
|
||||
+ "gotoAndStop(\"MyLabel\");\n"
|
||||
+ "play();\n"
|
||||
+ "}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user